SmartIntroduce exception in #5734

This build of IDEA can't cope with calling DialogWrapper.dispose() twice anymore. Should be fixed again in the next IDEA build, but still....

Bas

Error during dispatching of java.awt.event.FocusEvent[FOCUS_LOST,permanent,opposite=null] on dialog9
java.lang.NullPointerException
at com.intellij.openapi.ui.DialogWrapper.dispose(DialogWrapper.java:347)
at org.intellij.plugins.smartIntroduce.utils.SelectionDialog.dispose(SelectionDialog.java:151)
at org.intellij.plugins.smartIntroduce.utils.SelectionDialog$1.focusLost(SelectionDialog.java:59)
at java.awt.AWTEventMulticaster.focusLost(AWTEventMulticaster.java:213)
at java.awt.Component.processFocusEvent(Component.java:5930)
at java.awt.Component.processEvent(Component.java:5794)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:878)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:551)
at java.awt.Component.dispatchEventImpl(Component.java:4282)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:5)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:150)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:10)
at java.awt.SequencedEvent.dispatch(SequencedEvent.java:98)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:5)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:150)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:10)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1039)
at java.awt.Dialog$3.run(Dialog.java:1091)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1089)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:63)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:7)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:745)
at com.intellij.refactoring.introduceVariable.IntroduceVariableHandler.getSettings(IntroduceVariableHandler.java:18)
at com.intellij.refactoring.introduceVariable.IntroduceVariableBase.invokeImpl(IntroduceVariableBase.java:51)
at com.intellij.refactoring.introduceVariable.IntroduceVariableBase.a(IntroduceVariableBase.java:122)
at com.intellij.refactoring.introduceVariable.IntroduceVariableBase.invoke(IntroduceVariableBase.java:155)
at com.intellij.refactoring.actions.BaseRefactoringAction.actionPerformed(BaseRefactoringAction.java:28)
at org.intellij.plugins.smartIntroduce.utils.CompoundCommand.run(CompoundCommand.java:51)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:61)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:31)
at org.intellij.plugins.smartIntroduce.SmartIntroduceAction.runCommand(SmartIntroduceAction.java:138)
at org.intellij.plugins.smartIntroduce.SmartIntroduceAction.access$200(SmartIntroduceAction.java:37)
at org.intellij.plugins.smartIntroduce.SmartIntroduceAction$2.run(SmartIntroduceAction.java:254)
at org.intellij.plugins.smartIntroduce.SelectExpressionDialog.doOKAction(SelectExpressionDialog.java:81)
at org.intellij.plugins.smartIntroduce.utils.SelectionDialog.dispose(SelectionDialog.java:157)
at org.intellij.plugins.smartIntroduce.utils.SelectionDialog$4.keyPressed(SelectionDialog.java:101)
at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:233)
at java.awt.Component.processKeyEvent(Component.java:5996)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2794)
at java.awt.Component.processEvent(Component.java:5815)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:958)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:830)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657)
at java.awt.Component.dispatchEventImpl(Component.java:4282)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:5)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:129)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:10)
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)

3 comments

Bas Leijdekkers wrote:

This build of IDEA can't cope with calling DialogWrapper.dispose() twice anymore. Should be fixed again in the next IDEA build, but still....


Yes, I know. I tried to fix this last week but had some "offline fun" with IDEA.
How do you know this is fixed in the next build? I couldn't find anything in
JIRA about it.

Sascha

0

I just uploaded a fixed version.

Sascha

0

Please sign in to leave a comment.