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 - NPE if designer closed before initialization is complete
Summary: NPE if designer closed before initialization is complete
Status: RESOLVED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: SIMPLEFIX
: 150193 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-29 20:40 UTC by _ tboudreau
Modified: 2008-10-29 11:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***