IDEA-157874 ERROR - #com.intellij.ide.plugins.PluginManager - Argument for @NotNull parameter 'action' of com/intellij/openapi/actionSystem/AnActionEvent.createFromAnAction must not be null

This commit is contained in:
Dmitry Batrak
2016-06-30 14:26:40 +03:00
parent c345c002a2
commit 5e47cf7ce4
@@ -248,6 +248,7 @@ public class ModifierKeyDoubleClickHandler extends ApplicationComponent.Adapter
myIsRunningAction = true;
try {
AnAction action = myActionManagerEx.getAction(myActionId);
if (action == null) return false;
DataContext context = DataManager.getInstance().getDataContext(IdeFocusManager.findInstance().getFocusOwner());
AnActionEvent anActionEvent = AnActionEvent.createFromAnAction(action, event, ActionPlaces.MAIN_MENU, context);
action.update(anActionEvent);