1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 02:15:31 +02:00

Bug 418075 - NullPointerException in CModelManager.createBinaryFile()

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>
This commit is contained in:
Serge Beauchamp 2013-09-26 10:47:01 +01:00 committed by Sergey Prigogin
parent 6c85c85a06
commit 9dd8b1c50d

View file

@ -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