EA-92029 - assert: FileManagerImpl.findFile

This commit is contained in:
Aleksey Pivovarov
2016-11-18 12:05:42 +03:00
parent 5da4c33265
commit 73550e88f4
@@ -154,7 +154,7 @@ public class DiffUtil {
SyntaxHighlighter syntaxHighlighter = SyntaxHighlighterFactory.getSyntaxHighlighter(language, project, file);
return highlighterFactory.createEditorHighlighter(syntaxHighlighter, EditorColorsManager.getInstance().getGlobalScheme());
}
if (file != null) {
if (file != null && file.isValid()) {
if ((type == null || type == PlainTextFileType.INSTANCE) || file.getFileType() == type || file instanceof LightVirtualFile) {
return highlighterFactory.createEditorHighlighter(project, file);
}