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 2522

Summary: close file in Editor - close non front file
Product: platform Reporter: pknakal <pknakal>
Component: -- Other --Assignee: pknakal <pknakal>
Status: CLOSED FIXED    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description pknakal 1999-07-16 03:57:13 UTC
try close file Applet1 in Editor (Pat.Pokusy.PokusThreadMain2 is close)
Searching in: Pat.Pokusy.PokusThreadMain2
Searching in: editor
Searching in: null
Searching in: Form [Applet1]

Found # 0 Form [Applet1]
Closing tc in mode Form [Applet1]
Exception occurred during event dispatching:
java.lang.NullPointerException
        at com.netbeans.developer.impl.windows.ModeImpl.close(ModeImpl.java:176)
        at com.netbeans.developer.impl.windows.WindowManagerImpl$TopComponentManager.close(WindowManagerImpl.java:571)
        at org.openide.windows.TopComponent.close(TopComponent.java:217)
        at org.openide.windows.TopComponent.close(TopComponent.java:202)
        at com.netbeans.developer.modules.loaders.form.FormEditorSupport.notifyClose(FormEditorSupport.java:119)
        at com.netbeans.developer.modules.loaders.java.JavaEditor$JavaEditorComponent.closeLast(JavaEditor.java:642)
        at org.openide.windows.CloneableTopComponent$Ref.unregister(CloneableTopComponent.java:216)
        at org.openide.windows.CloneableTopComponent.canClose(CloneableTopComponent.java:103)
        at org.openide.text.EditorSupport$Editor.canClose(EditorSupport.java:966)
        at org.openide.windows.TopComponent.close(TopComponent.java:215)
        at org.openide.windows.TopComponent.close(TopComponent.java:202)
        at com.netbeans.developer.impl.windows.MultiTabContainer.performAction(MultiTabContainer.java:774)
        at org.openide.util.actions.CallbackSystemAction.performAction(CallbackSystemAction.java:78)
        at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:69)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1101)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
        at javax
Comment 1 Marek Grummich 2000-07-25 09:39:59 UTC
Priority is changed to P4 (normal).