mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't proceed if editor is null
This commit is contained in:
+2
@@ -118,6 +118,8 @@ public class AccessStaticViaInstanceFix extends LocalQuickFixAndIntentionActionO
|
||||
if (hasSideEffects && !ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
final TextAttributes attributes = EditorColorsManager.getInstance().getGlobalScheme().getAttributes(EditorColors.SEARCH_RESULT_ATTRIBUTES);
|
||||
final Editor editor = PlatformDataKeys.EDITOR.getData(DataManager.getInstance().getDataContext());
|
||||
if (editor == null)
|
||||
return false;
|
||||
HighlightManager.getInstance(project).addOccurrenceHighlights(editor, PsiUtilBase.toPsiElementArray(sideEffects), attributes, true,
|
||||
null);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user