mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Check if underlying file exists when retrieving the globals.
This commit is contained in:
parent
974208e2ef
commit
1b1022489f
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-12-02 Mikhail Khodjaiants
|
||||
Check if the underlying IFile exists when retrieving the path of global variable.
|
||||
* CDebugTarget.java
|
||||
|
||||
2002-12-02 Alain Magloire
|
||||
|
||||
* src/org/eclipse/cdt/debug/core/cdi/ICDIErrorInfo.java: New file.
|
||||
|
|
|
@ -2011,7 +2011,7 @@ public class CDebugTarget extends CDebugElement
|
|||
IPath path = null;
|
||||
if ( var.getParent() != null && var.getParent() instanceof ICFile )
|
||||
{
|
||||
if ( !(var.getParent() instanceof IBinary) )
|
||||
if ( !(var.getParent() instanceof IBinary) && ((ICFile)var.getParent()).getFile() != null )
|
||||
{
|
||||
path = ((ICFile)var.getParent()).getFile().getLocation();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue