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 10725 - NPE when opening Explorer
Summary: NPE when opening Explorer
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on: 11008
Blocks:
  Show dependency tree
 
Reported: 2001-03-27 14:58 UTC by _ ttran
Modified: 2008-12-22 21:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE from form module (14.06 KB, text/plain)
2001-07-20 20:38 UTC, Jan Zajicek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ ttran 2001-03-27 14:58:42 UTC
Steps:
 - fresh build from cvs release32
 - SDI
 - mount my "Test" directory
 - open a form
 - the IDE switches to GUI editing workspace, Explorer window is not shown
 - View -> Explorer, the following NPE happens (again and again)

P1 because the IDE is unusable without Explorer


Tue Mar 27 16:52:58 GMT+02:00 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
        at
org.netbeans.core.windows.frames.DefaultContainerImpl.setAttached(DefaultContainerImpl.java:399)
        at
org.netbeans.core.windows.frames.DefaultContainerImpl.addNotify(DefaultContainerImpl.java:376)
        at java.awt.Container.addNotify(Container.java:1579)
        at javax.swing.JComponent.addNotify(JComponent.java:4015)
        at java.awt.Container.addNotify(Container.java:1579)
        at javax.swing.JComponent.addNotify(JComponent.java:4015)
        at javax.swing.JRootPane.addNotify(JRootPane.java:483)
        at java.awt.Container.addNotify(Container.java:1579)
        at java.awt.Window.addNotify(Window.java:352)
        at java.awt.Frame.addNotify(Frame.java:361)
        at
org.netbeans.core.windows.frames.TopFrameTypeImpl.addNotify(TopFrameTypeImpl.java:80)
        at java.awt.Window.show(Window.java:390)
        at java.awt.Component.show(Component.java:946)
        at java.awt.Component.setVisible(Component.java:903)
        at org.netbeans.core.windows.ModeImpl.setVisible(ModeImpl.java:581)
        at org.netbeans.core.windows.ModeImpl$1.performCommand(ModeImpl.java:276)
        at
org.netbeans.core.windows.DeferredPerformer.processCommand(DeferredPerformer.java:165)
        at
org.netbeans.core.windows.DeferredPerformer.putRequest(DeferredPerformer.java:83)
        at org.netbeans.core.windows.ModeImpl.dockInto(ModeImpl.java:255)
        at org.netbeans.core.windows.ModeImpl.dockInto(ModeImpl.java:239)
        at
org.netbeans.core.windows.WindowManagerImpl$TopComponentManager.doOpen(WindowManagerImpl.java:1102)
        at
org.netbeans.core.windows.WindowManagerImpl$TopComponentManager.access$700(WindowManagerImpl.java:983)
        at
org.netbeans.core.windows.WindowManagerImpl$1.run(WindowManagerImpl.java:1067)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:331)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:134)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:96)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
Comment 1 Jan Zajicek 2001-03-28 15:59:16 UTC
I found one way, how to reproduce this bug:

1.unpack fresh 3.2 build
2.start it with -single switch
3.mount some folder
4.under this folder create a form (f.e. JDialog)
5.leave the form opened and exit IDE
6.start IDE as multiuser (normal way)
7.do not close the opened form and create new project
8.note that the Component inspector is under new project, it should NOT be!!!
9.switch back to the previous project
10.NPE from form module is thrown (see attachment), the form window from
previous project is trying to be saved!!!
11.after finishing openning of the first project open the second one again (is
the new one from 7.)
12.note that the explorer under gui editting is not opened and try to open it
through the view menu
13.mentioned NPE when setAttached() is thrown and the explorer is unusable!!!

Comment 2 Jan Zajicek 2001-03-28 16:00:28 UTC
Created attachment 908 [details]
NPE from form module
Comment 3 David Simonek 2001-04-05 14:23:10 UTC
Fixed, deserialization mechanism is now more robust. Point 8 and 10 are not
solved yet, bug 11008 must be fixed to get this solved.
Comment 4 Jan Chalupa 2001-05-05 20:55:52 UTC
Target milestone 3.2
Comment 5 Marian Mirilovic 2001-11-29 14:41:33 UTC
- closed