mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-92029 - assert: FileManagerImpl.findFile
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user