IntelliJad exception when open Window menu

When I click Window menu with no project open, IntelliJad throw this exception (IDEA 7.0.3 with IntelliJad 1.4.1)

update failed for AnAction with ID=net.stevechaloner.intellijad.CloseAllDecompiledFiles
java.lang.NullPointerException
at com.intellij.openapi.fileEditor.FileEditorManager.getInstance(FileEditorManager.java:30)
at net.stevechaloner.intellijad.actions.CloseAllDecompiledFilesAction.update(CloseAllDecompiledFilesAction.java:38)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:82)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:29)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:5)
at com.intellij.openapi.actionSystem.impl.ActionMenu.f(ActionMenu.java:39)
at com.intellij.openapi.actionSystem.impl.ActionMenu.access$400(ActionMenu.java:50)
at com.intellij.openapi.actionSystem.impl.ActionMenu$MenuListenerImpl.menuSelected(ActionMenu.java:2)
at javax.swing.JMenu.fireMenuSelected(JMenu.java:1028)
at javax.swing.JMenu$MenuChangeListener.stateChanged(JMenu.java:1107)
at javax.swing.DefaultButtonModel.fireStateChanged(DefaultButtonModel.java:333)
at javax.swing.DefaultButtonModel.setSelected(DefaultButtonModel.java:215)
at javax.swing.JMenu.setSelected(JMenu.java:294)
at javax.swing.JMenu.menuSelectionChanged(JMenu.java:1175)
at com.intellij.openapi.actionSystem.impl.ActionMenu.menuSelectionChanged(ActionMenu.java:94)
at javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:101)
at javax.swing.plaf.basic.BasicMenuUI$Handler.mousePressed(BasicMenuUI.java:435)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

1 comment
Comment actions Permalink

I'll take a look at this tonight and post a patch asap.

Thanks for the bug report, and sorry for the inconvenience.

- Steve

0

Please sign in to leave a comment.