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.
It is impossible to open a java file from Files and Favorites views. It is probably something wrong with refactoring. Other file types like xml or properties files are OK. To reproduce: - run IDE and open Favorites (Window|Favorites) - browse to a java file and try to open it - nothing but empty editor tab is opened and exception is thrown Tested in build 20040607-1357, JDK1.4.2_04, WindowsXP.
Created attachment 15533 [details] Stack trace
Yes, I have reproduced it. The same problem will occur if you will open a java file via File/Open File... In these situations getResource() returns null...
Petr F., it seems that problem is not in java module. I am reassigning the issue back to editor.
fixed in [maintrunk] /cvs/editor/src/org/netbeans/modules/editor/java/NbJavaJMISyntaxSupport.java,v <-- NbJavaJMISyntaxSupport.java new revision: 1.6; previous revision: 1.5
I am sorry, I did it in a hurry.
Verified in build 20040609-0731.
*** Issue 44626 has been marked as a duplicate of this issue. ***
*** Issue 44777 has been marked as a duplicate of this issue. ***