When a referenced project is deleted it's location is null.
The source locator should check this when it returns the
path array.
Index:
ChangeLog
===================================================================
RCS
file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision
1.47
diff -u -r1.47 ChangeLog
--- ChangeLog 5 Nov 2002 20:16:15
-0000 1.47
+++ ChangeLog 7 Nov 2002 21:53:19 -0000
@@ -1,3 +1,8
@@
+2002-11-07 Mikhail Khodjaiants
+ When a referenced project is
deleted it's location is null. The source locator should
+ check this
when it returns the path array.
+ *
CProjectSourceLocation.java
+
2002-11-05 Mikhail
Khodjaiants
Added support of the 'Add Global Variables' action of
the Expressions view.
* IExecFileInfo.java
Index:
src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java
===================================================================
RCS
file:
/home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java,v
retrieving
revision 1.1
diff -u -r1.1 CProjectSourceLocation.java
---
src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java 9
Oct 2002 17:56:16 -0000 1.1
+++
src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java 7
Nov 2002 21:53:20 -0000
@@ -153,7 +153,11 @@
IPath[]
result = new IPath[0];
if ( getProject() != null
)
{
- result = new IPath[] {
getProject().getLocation() };
+ IPath location =
getProject().getLocation();
+ if ( location != null
)
+ {
+ result = new IPath[] {
location
};
+ }
}
return
result;
}