From 5af988624b60d9c636d8170bbfe6e99a77b4eae0 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Thu, 7 Nov 2002 21:54:40 +0000 Subject: [PATCH] When a referenced project is deleted it's location is null. The source locator should check this when it returns the path array. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 5 +++++ .../internal/core/sourcelookup/CProjectSourceLocation.java | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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; }