Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2010-08-02 06:58:56 -0400
committerMarkus Schorn2010-08-02 06:58:56 -0400
commit0620fdabdb389f4ac7f72c7b7f645e4462fe5e6a (patch)
treecb9ea4a1cfa9fd349ff6d861e59b771bb3ad2227
parentb2d03c49ea16b9c314bc4802a3af43e179e74502 (diff)
downloadorg.eclipse.cdt-0620fdabdb389f4ac7f72c7b7f645e4462fe5e6a.tar.gz
org.eclipse.cdt-0620fdabdb389f4ac7f72c7b7f645e4462fe5e6a.tar.xz
org.eclipse.cdt-0620fdabdb389f4ac7f72c7b7f645e4462fe5e6a.zip
Bug 321118: NPE in include file resolution.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/FileExistsCache.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/FileExistsCache.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/FileExistsCache.java
index c10fd56afe..0dca3387f2 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/FileExistsCache.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/FileExistsCache.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 Wind River Systems, Inc. and others.
+ * Copyright (c) 2008, 2010 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -50,6 +50,9 @@ public final class FileExistsCache {
}
String parent= file.getParent();
+ if (parent == null)
+ return false;
+
String name= file.getName();
if (CASE_INSENSITIVE)
name= name.toUpperCase();

Back to the top