This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 20121017-4a2a9ffac449) VM: Java HotSpot(TM) Client VM, 20.8-b03, Java(TM) SE Runtime Environment, 1.6.0_33-b03 OS: SunOS Stacktrace: java.lang.NullPointerException at org.netbeans.modules.cnd.discovery.wizard.DiscoveryWizardIterator.current(DiscoveryWizardIterator.java:120) at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:834) at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:815) at org.openide.WizardDescriptor$6.run(WizardDescriptor.java:799) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
Created attachment 126089 [details] stacktrace
Wizard's step implements WizardDescriptor.AsynchronousValidatingPanel. When user click next button a long operation is performed out of EDT thread. User can click finish button. Wizard iterator is uninitialized. But after finishing of the long operation the WizardDescriptor accesses to uninitialized wizard iterator. As result NPE.
Looks like a duplicate of #202796 Next & Finish buttons are disabled during validation. However user changes in the wizard panel may re-enable Finish button during validation. If that is the case then this issue is duplicate of #202796. Please provide exact steps to reproduce and reopen, thanks.
(In reply to comment #3) > Looks like a duplicate of #202796 > > Next & Finish buttons are disabled during validation. However user changes in > the wizard panel may re-enable Finish button during validation. If that is the > case then this issue is duplicate of #202796. > > Please provide exact steps to reproduce and reopen, thanks. Sorry I mixed up buttons, investigation should be: Wizard's step implements WizardDescriptor.AsynchronousValidatingPanel. When user click next button a long operation is performed out of EDT thread. User can click cancel button. Wizard iterator is uninitialized. But after finishing of the long operation the WizardDescriptor accesses to uninitialized wizard iterator. As result NPE.
core-main f83890dd4647
Integrated into 'main-golden', will be available in build *201210300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f83890dd4647 User: S. Aubrecht <saubrecht@netbeans.org> Log: #220286 - don't use wizard iterator if it was canceled during validation
Not fixed. Exception: java.lang.NullPointerException at org.netbeans.modules.cnd.discovery.wizard.DiscoveryWizardIterator.nextPanel(DiscoveryWizardIterator.java:148) at org.openide.WizardDescriptor$Listener$1.run(WizardDescriptor.java:2114) at org.openide.WizardDescriptor$11$1.run(WizardDescriptor.java:1459) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646) at java.awt.EventQueue.access$000(EventQueue.java:84) at java.awt.EventQueue$1.run(EventQueue.java:607) at java.awt.EventQueue$1.run(EventQueue.java:605) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:616) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) [catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
core-main 6606466c21fe
Integrated into 'main-golden', will be available in build *201211040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6606466c21fe User: S. Aubrecht <saubrecht@netbeans.org> Log: #220286 - don't use wizard iterator if it was canceled during validation
Integrated into 'main-golden', will be available in build *201211080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f735ab72147e User: Alexander Simon <alexvsimon@netbeans.org> Log: Bug #220286 NullPointerException at org.netbeans.modules.cnd.discovery.wizard.DiscoveryWizardIterator.current - additional fix on cnd side
*** Bug 229685 has been marked as a duplicate of this bug. ***