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 9860 - Cannot open java files -> NPE
Summary: Cannot open java files -> NPE
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 9879 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-02-27 09:12 UTC by Jan Zajicek
Modified: 2007-09-26 09:14 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 Jan Zajicek 2001-02-27 09:12:11 UTC
In dev build 134 this NPE is thrown when trying to open java files (other files
can be opened):


Tue Feb 27 10:04:55 CET 2001java.lang.NullPointerException: null
java.lang.NullPointerException
        at javax.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:467)
        at
javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1518)
        at
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:161)
        at
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:130)
        at javax.swing.JComponent.firePropertyChange(JComponent.java:3198)
        at
org.openide.text.QuietEditorPane.firePropertyChange(QuietEditorPane.java:37)
        at javax.swing.text.JTextComponent.setDocument(JTextComponent.java:323)
        at org.openide.text.CloneableEditor.initialize(CloneableEditor.java:219)
        at org.openide.text.CloneableEditor.<init>(CloneableEditor.java:117)
        at org.openide.text.EditorSupport$Editor.<init>(EditorSupport.java:513)
        at org.openide.text.EditorSupport$Editor.<init>(EditorSupport.java:505)
        at
org.netbeans.modules.java.JavaEditor$JavaEditorComponent.<init>(JavaEditor.java:962)
        at
org.netbeans.modules.java.JavaEditor.createJavaEditorComponent(JavaEditor.java:883)
        at
org.netbeans.modules.java.JavaEditor.createCloneableTopComponent(JavaEditor.java:875)
        at
org.openide.windows.CloneableOpenSupport.openCloneableTopComponent(CloneableOpenSupport.java:142)
        at
org.openide.windows.CloneableOpenSupport.open(CloneableOpenSupport.java:61)
        at org.openide.actions.OpenAction.performAction(OpenAction.java:72)
        at
org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:79)
        at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:76)
        at org.openide.util.Task.run(Task.java:124)
[catch] at
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:562)
Comment 1 Svata Dedic 2001-02-27 09:13:52 UTC
Already fixed in main trunk. 
Comment 2 Jan Chalupa 2001-03-01 16:06:31 UTC
*** Issue 9879 has been marked as a duplicate of this issue. ***
Comment 3 Jan Becicka 2001-03-02 15:11:38 UTC
[dev-136] Verified
Comment 4 Quality Engineering 2003-07-01 13:20:10 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.