diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index b4a887bcbf7..f1b4432131d 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -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 diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java index 501c1a05570..1d6bcfb974d 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java @@ -153,7 +153,11 @@ public class CProjectSourceLocation implements ICSourceLocation 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; }