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:
parent
6c85c85a06
commit
9dd8b1c50d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue