Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Ryall2010-12-14 19:58:20 +0000
committerKen Ryall2010-12-14 19:58:20 +0000
commitcc19f30cd67f596aea4b5963c8ab4a83bbf821c9 (patch)
tree7a1eb6604365c1e4daf833b11813e0e6da24be95
parentffb32e66e28e4775b46353c0a39426a50deb7386 (diff)
downloadorg.eclipse.cdt-cc19f30cd67f596aea4b5963c8ab4a83bbf821c9.tar.gz
org.eclipse.cdt-cc19f30cd67f596aea4b5963c8ab4a83bbf821c9.tar.xz
org.eclipse.cdt-cc19f30cd67f596aea4b5963c8ab4a83bbf821c9.zip
Fix NPE.
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/CProjectSourceContainer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/CProjectSourceContainer.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/CProjectSourceContainer.java
index 2e25d78e858..7ac108d17b4 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/CProjectSourceContainer.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/CProjectSourceContainer.java
@@ -102,6 +102,9 @@ public class CProjectSourceContainer extends CompositeSourceContainer {
* @see org.eclipse.debug.internal.core.sourcelookup.ISourceContainer#findSourceElements(java.lang.String)
*/
public Object[] findSourceElements(String name) throws CoreException {
+ if (fProject == null)
+ return EMPTY;
+
ArrayList<Object> sources = new ArrayList<Object>();
// An IllegalArgumentException is thrown from the "getFile" method

Back to the top