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 209521 - [72cat] NullPointerException at org.netbeans.modules.form.JavaCodeGenerator.importFQNs
Summary: [72cat] NullPointerException at org.netbeans.modules.form.JavaCodeGenerator.i...
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-03-13 14:08 UTC by Michel Graciano
Modified: 2012-04-27 13:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 185821


Attachments
stacktrace (1.45 KB, text/plain)
2012-03-13 14:08 UTC, Michel Graciano
Details
stacktrace (1.45 KB, text/plain)
2012-03-13 14:47 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-03-13 14:08:47 UTC
Build: NetBeans IDE Dev (Build 20120307-71a4e5e49009)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b04
OS: Linux

User Comments:
hmichel: Renaming a form file




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.JavaCodeGenerator.importFQNs(JavaCodeGenerator.java:3455)
   at org.netbeans.modules.form.JavaCodeGenerator.regenerateCode(JavaCodeGenerator.java:3437)
   at org.netbeans.modules.form.JavaCodeGenerator$FormListener.formChanged(JavaCodeGenerator.java:3935)
   at org.netbeans.modules.form.FormModel.fireEvents(FormModel.java:1322)
   at org.netbeans.modules.form.FormModel.fireEventBatch(FormModel.java:1295)
   at org.netbeans.modules.form.FormModel.firePendingEvents(FormModel.java:1258)
Comment 1 Michel Graciano 2012-03-13 14:08:49 UTC
Created attachment 116667 [details]
stacktrace
Comment 2 Michel Graciano 2012-03-13 14:47:14 UTC
Created attachment 116671 [details]
stacktrace

1. Duplicated a form file without refactoring (Copy&paste);
2. Try to rename the file
Comment 3 Jan Stola 2012-04-17 09:43:46 UTC
The described steps work fine on my machine. Are you still able to reproduce the attached exception when you follow these steps or it happened just once/twice?

The stack-trace shows that GUI Builder was not able to find initComponents section during refactoring. Unfortunately, it is not clear why that happened.
Comment 4 Michel Graciano 2012-04-27 13:58:50 UTC
No, it is not reproducible anymore. Sorry for the delay.

v. Build 20120427-f8f29fb48478