Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Check if underlying file exists when retrieving the globals.

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision 1.67
diff -u -r1.67 ChangeLog
--- ChangeLog 2 Dec 2002 18:34:30 -0000 1.67
+++ ChangeLog 2 Dec 2002 20:31:41 -0000
@@ -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.
Index: src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java,v
retrieving revision 1.57
diff -u -r1.57 CDebugTarget.java
--- src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java 28 Nov 2002 23:45:16 -0000 1.57
+++ src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java 2 Dec 2002 20:31:41 -0000
@@ -2011,7 +2011,7 @@
         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();
            }

Back to the top