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 208601 - [71cat] NullPointerException at org.netbeans.modules.form.FormJavaSource.getFormClassName
Summary: [71cat] NullPointerException at org.netbeans.modules.form.FormJavaSource.getF...
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-18 12:34 UTC by Chiana
Modified: 2012-04-17 15:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 183799


Attachments
stacktrace (5.86 KB, text/plain)
2012-02-18 12:34 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2012-02-18 12:34:24 UTC
Build: NetBeans IDE Dev (Build 201202170400)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
Chiana: Opened a panel file (JPanel .java+.form) file in a fresh install (very fresh, everything inkluding JDK newly installed)




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.FormJavaSource.getFormClassName(FormJavaSource.java:167)
   at org.netbeans.modules.form.FormJavaSource.getSuperClassName(FormJavaSource.java:192)
   at org.netbeans.modules.form.FormEditor.loadOnBackground(FormEditor.java:290)
   at org.netbeans.modules.nbform.FormDesignerTC$PreLoadTask.run(FormDesignerTC.java:255)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1404)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1984)
Comment 1 Chiana 2012-02-18 12:34:27 UTC
Created attachment 115906 [details]
stacktrace
Comment 2 Jan Stola 2012-04-17 15:03:02 UTC
The attached exception shows that
ClassPath.getClassPath(javaFile, ClassPath.SOURCE)
was null. This should not happen. It was probably some failure of Java or project infrastructure. If I understand correctly then this issue is related to 208602 and has been resolved by the steps mentioned at the end of the issue.