1
0
Fork 0
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:
Mikhail Khodjaiants 2002-12-02 20:32:46 +00:00
parent 974208e2ef
commit 1b1022489f
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View 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();
}