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 1748 - If only class node from form object is opened it is impossible to close editor.
Summary: If only class node from form object is opened it is impossible to close editor.
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-05-14 19:08 UTC by L Martinek
Modified: 2003-06-30 18:26 UTC (History)
0 users

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 L Martinek 1999-05-14 19:08:30 UTC
If you open some form object then editor, form editor and component inspector is opened and it is able to close them.
But:
Expand form object.
Open only class.
Try to close editor. Exception is thrown.

java.lang.NullPointerException:
	at com.netbeans.developer.modules.loaders.form.FormEditorSupport.notifyClose(FormEditorSupport.java:115)
	at com.netbeans.developer.modules.loaders.java.JavaEditor$JavaEditorComponent.closeLast(JavaEditor.java:535)
	at com.netbeans.ide.windows.CloneableTopComponent$Ref.unregister(CloneableTopComponent.java:223)
	at com.netbeans.ide.windows.CloneableTopComponent.close(CloneableTopComponent.java:104)

	at com.netbeans.developer.impl.MultiObjectFrame.closeLastView(MultiObjectFrame.java:593)
	at com.netbeans.developer.impl.MultiObjectFrame.closeTopComponent(MultiObjectFrame.java:491)
	at com.netbeans.developer.impl.MultiObjectFrame.closeViews(Compiled Code)
	at com.netbeans.developer.impl.MultiObjectFrame.closeLast(MultiObjectFrame.java:571)
	at com.netbeans.developer.impl.TopFrame.windowClosing(TopFrame.java:250)
	at com.netbeans.ide.windows.Workspace$Element$Listener.windowClosing(Workspace.java:904)
	at java.awt.Window.processWindowEvent(Window.java:600)
	at javax.swing.JFrame.processWindowEvent(JFrame.java:182)
	at java.awt.Window.processEvent(Window.java:576)
	at java.awt.Component.dispatchEventImpl(Compiled Code)
	at java.awt.Container.dispatchEventImpl(Compiled Code)
	at java.awt.Window.dispatchEventImpl(Compiled Code)
	at java.awt.Component.dispatchEvent(Compiled Code)
	at java.awt.EventQueue.dispatchEvent(Compiled Code)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)
Comment 1 Marek Grummich 2000-07-25 09:34:59 UTC
Priority is changed to P4 (normal).
Comment 2 Jan Stola 2000-07-27 17:54:59 UTC
Bug assigned to the module owner.
Comment 3 Quality Engineering 2003-06-30 18:26:47 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.