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.
Almost everytime I close a file, be it a plain text file or Java source file or whatever, I get a NullPointerException. Here is the stack trace: java.lang.NullPointerException at org.netbeans.editor.Utilities.getDocument(Utilities.java:958) at org.netbeans.editor.BaseTextUI.uninstallUI(BaseTextUI.java:173) at javax.swing.JComponent.setUI(JComponent.java:619) at javax.swing.text.JTextComponent.setUI(JTextComponent.java:297) at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:307) at org.netbeans.editor.BaseKit.deinstall(BaseKit.java:519) at javax.swing.JEditorPane.setEditorKit(JEditorPane.java:952) [catch] at org.openide.text.CloneableEditor$1.run(CloneableEditor.java:131) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:201) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:231) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
*** This issue has been marked as a duplicate of 38791 ***