krasa / FrameSwitcher

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7138?pr=idea
Apache License 2.0
40 stars 5 forks source link

Throw exception when using shift+enter/ctrl+enter shortcut #34

Closed jingcj closed 3 years ago

jingcj commented 3 years ago

After updating IntelliJ IDEA to 2021.2 CE, Build #IC-212.4746.92 OS: Mac Big Sur Version 11.4

java.lang.IllegalArgumentException: Argument for @NotNull parameter 'place' of com/intellij/openapi/actionSystem/AnActionEvent.<init> must not be null
    at com.intellij.openapi.actionSystem.AnActionEvent.$$$reportNull$$$0(AnActionEvent.java)
    at com.intellij.openapi.actionSystem.AnActionEvent.<init>(AnActionEvent.java)
    at krasa.frameswitcher.FrameSwitchAction$2.actionPerformed(FrameSwitchAction.java:350)
    at com.intellij.ui.popup.WizardPopup.proceedKeyEvent(WizardPopup.java:378)
    at com.intellij.ui.popup.WizardPopup.dispatch(WizardPopup.java:354)
    at com.intellij.ui.popup.PopupDispatcher.dispatchKeyEvent(PopupDispatcher.java:112)
    at com.intellij.ui.popup.PopupDispatcher.dispatch(PopupDispatcher.java:148)
    at com.intellij.ide.IdePopupManager.dispatch(IdePopupManager.java:101)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:723)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:442)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:825)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:441)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:794)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
bazzik commented 3 years ago

Just upgraded to 2021.2 and got the same issue.

krasa commented 3 years ago

thanks, you can update

bazzik commented 3 years ago

Thanks. The updated plugin works fine. Cheers! 🙏