summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Beauchamp2013-09-26 05:47:01 (EDT)
committer Sergey Prigogin2013-09-27 13:58:13 (EDT)
commit9dd8b1c50dd820e5ba0c69fb7b0cad708a02705f (patch)
treedf3f802d91c9f98cb8e5781d6fd652b7e5343ce5
parent6c85c85a06dd20276ee65642c2d9c48dca0fd4e0 (diff)
downloadorg.eclipse.cdt-9dd8b1c50dd820e5ba0c69fb7b0cad708a02705f.zip
org.eclipse.cdt-9dd8b1c50dd820e5ba0c69fb7b0cad708a02705f.tar.gz
org.eclipse.cdt-9dd8b1c50dd820e5ba0c69fb7b0cad708a02705f.tar.bz2
Bug 418075 - NullPointerException in CModelManager.createBinaryFile()refs/changes/89/16789/2
Change-Id: Id0a1cb87ea0a5a1f0f645e4322ae9ce151d1b41e Signed-off-by: Serge Beauchamp <sergebeauchamp@mac.com> Reviewed-on: https://git.eclipse.org/r/16789 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java
index c273389..bea9ffd 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java
@@ -675,6 +675,9 @@ public class CModelManager implements IResourceChangeListener, IContentTypeChang
}
URI fileUri = file.getLocationURI();
+ if (fileUri == null)
+ return null;
+
// Avoid name special devices, empty files and the like
if (!Util.isNonZeroLengthFile(fileUri)) {
// PR:xxx the EFS does not seem to work for newly created file