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.

Bug 148677

Summary: NPE if designer closed before initialization is complete
Product: javame Reporter: _ tboudreau <tboudreau>
Component: Visual DesignerAssignee: _ tboudreau <tboudreau>
Status: RESOLVED FIXED    
Severity: blocker CC: kharezlak
Priority: P3 Keywords: SIMPLEFIX
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ tboudreau 2008-09-29 20:40:10 UTC
Create a new mobility project with a sample midlet.  Shut down NetBeans.  Restart it.  Click the close button on
HelloMidlet's editor tab before the UI has initialized.  The following exception is thrown (it helps to have a slow 1GB
machine):

java.lang.NullPointerException
        at java.awt.Container.addImpl(Container.java:1010)
        at java.awt.Container.add(Container.java:896)
        at org.netbeans.modules.vmd.inspector.InspectorManagerView$6.run(Inspect
orManagerView.java:181)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.j
ava:104)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 _ tboudreau 2008-09-30 17:45:55 UTC
2 line fix;  taking this issue.
Comment 2 _ tboudreau 2008-09-30 17:51:08 UTC
104572:490e0bdbdf88
Comment 3 Karol Harezlak 2008-10-29 11:05:38 UTC
*** Issue 150193 has been marked as a duplicate of this issue. ***
Comment 4 Karol Harezlak 2008-10-29 11:06:01 UTC
*** Issue 150193 has been marked as a duplicate of this issue. ***