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 38791 - [JDK1.5.0] NullPointerException thrown when closing editor files
Summary: [JDK1.5.0] NullPointerException thrown when closing editor files
Status: CLOSED DUPLICATE of bug 39015
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: JDK_SPECIFIC
: 38792 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-15 05:54 UTC by CPlasmaGuns
Modified: 2011-06-09 09:51 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:54:22 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 08:59:23 UTC
Please append 'java -version' output. Thanks.
Comment 2 Milan Kubec 2004-01-26 09:00:44 UTC
*** Issue 38792 has been marked as a duplicate of this issue. ***
Comment 3 CPlasmaGuns 2004-01-26 15:45:46 UTC
java -version output:

java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b31)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b31, mixed mode)
Comment 4 Milan Kubec 2004-01-27 10:25:36 UTC
Thanks for info.
Comment 5 Milan Kubec 2004-01-27 10:26:58 UTC

*** This issue has been marked as a duplicate of 39015 ***
Comment 6 Marian Mirilovic 2011-06-09 09:51:12 UTC
v/c