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 167400 - NullPointerException at javax.swing.plaf.basic.BasicTextUI.uninstallUI
Summary: NullPointerException at javax.swing.plaf.basic.BasicTextUI.uninstallUI
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2009-06-20 04:45 UTC by sri
Modified: 2009-08-11 12:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 143330


Attachments
stacktrace (1.32 KB, text/plain)
2009-06-20 04:45 UTC, sri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sri 2009-06-20 04:45:44 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows Vista, 6.0, amd64

Stacktrace: 
java.lang.NullPointerException
        at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:818)
        at org.netbeans.editor.BaseTextUI.uninstallUI(BaseTextUI.java:258)
        at javax.swing.JComponent.setUI(JComponent.java:651)
        at javax.swing.text.JTextComponent.setUI(JTextComponent.java:322)
        at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:332)
        at org.netbeans.editor.BaseKit.deinstall(BaseKit.java:794)
Comment 1 sri 2009-06-20 04:45:49 UTC
Created attachment 83836 [details]
stacktrace
Comment 2 Vitezslav Stejskal 2009-06-22 11:51:49 UTC
I assume this can't be reproduced reliably. If you know how to reproduce it please attach the steps here. Thanks
Comment 3 Miloslav Metelka 2009-08-11 12:00:46 UTC
Looks like JEditorPane.getDocument() would return null document which should not happen.
Please reopen the problem if the problem persists with steps to reproduce. Thanks.