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 38792 - NullPointerException thrown when closing editor files
Summary: NullPointerException thrown when closing editor files
Status: RESOLVED DUPLICATE of bug 38791
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Ondrej Rypacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 05:58 UTC by CPlasmaGuns
Modified: 2004-09-02 09:24 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 CPlasmaGuns 2004-01-15 05:58:07 UTC
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)
Comment 1 Milan Kubec 2004-01-26 09:00:49 UTC

*** This issue has been marked as a duplicate of 38791 ***