mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fix: Editor without Project from DiffApplication
This commit is contained in:
+1
-1
@@ -322,7 +322,7 @@ public class TextEditorProvider implements FileEditorProvider, DumbAware {
|
||||
if (file == null) return null;
|
||||
|
||||
final Project project = myEditor.getProject();
|
||||
LOG.assertTrue(project != null);
|
||||
if (project == null) return null;
|
||||
return StructureViewBuilder.PROVIDER.getStructureViewBuilder(file.getFileType(), file, project);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user