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.
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)
Created attachment 116667 [details] stacktrace
Created attachment 116671 [details] stacktrace 1. Duplicated a form file without refactoring (Copy&paste); 2. Try to rename the file
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.
No, it is not reproducible anymore. Sorry for the delay. v. Build 20120427-f8f29fb48478