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.
I've got NPE when putting a RadioButton on a JFrame. java.lang.NullPointerException [catch] at org.netbeans.modules.form.codestructure.CodeStructure$JavaSource.getFieldNames(CodeStructure.java:1053)
Created attachment 26341 [details] the log file
i am sorry but i couldn't reproduce the problem. please, could you attach the .java and .form files in the last stable state?
I've been able to reproduce it I opened a new project with the option create main project class. This is for it to create a package. finish. ok I created a new frame in the default package (right clicking on Source Packages). I move that JFrame to the package where the main class is. Refactor, bla, bla. Then place a component into the JFrame. That's it!
It doesn't matter if it is default or other package! If you use a refactoring move class and then select component and place mouse cursor with a component over design area, the exception is thrown. I have already appended this issue as a showstopper to the #67536 - Q-Build candidate 200510251800 stoppers. Thanks!
fixed in trunk. Checking in FormEditor.java; /cvs/form/src/org/netbeans/modules/form/FormEditor.java,v <-- FormEditor.java new revision: 1.83; previous revision: 1.82 done Checking in codestructure/CodeStructure.java; /cvs/form/src/org/netbeans/modules/form/codestructure/CodeStructure.java,v <-- CodeStructure.java new revision: 1.16; previous revision: 1.15
Please commit the fix also to Q-Build branch - QBE200510251800. Thanks.
fixed also in QBE200510251800. Checking in FormEditor.java; /cvs/form/src/org/netbeans/modules/form/FormEditor.java,v <-- FormEditor.java new revision: 1.82.2.1; previous revision: 1.82 done Checking in codestructure/CodeStructure.java; /cvs/form/src/org/netbeans/modules/form/codestructure/CodeStructure.java,v <-- CodeStructure.java new revision: 1.15.2.1; previous revision: 1.15 done
The exception seems to be fixed in the trunk build 200510261800. However, I noticed if you place the first component to a moved form, no navigation, guide lines are shown! And also the component is not snapped to bottom, right edge of form (top, left only).
The last problem mentioned by mgrummich has been introduced during fixing of issue 66496. The problem occured only in trunk (not in q-build branch) Moreover, it has been already fixed (/cvs/form/src/org/netbeans/modules/form/FormDesigner.java,v new revision: 1.161; previous revision: 1.160)
Verified in the Q-build 200510311820.