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 201110070600) VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Windows Vista User Comments: MackSix: Tried to right-click jTextField in designer and choose "Duplicate". Stacktrace: java.lang.NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutDesigner.shouldDuplicateWholeGroup(LayoutDesigner.java:2278) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.shouldDuplicateWholeGroup(LayoutDesigner.java:2289) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.duplicateSequentially(LayoutDesigner.java:2168) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.duplicateLayout(LayoutDesigner.java:2132) at org.netbeans.modules.form.actions.DuplicateAction.duplicate(DuplicateAction.java:126) at org.netbeans.modules.form.actions.DuplicateAction.performAction(DuplicateAction.java:91)
Created attachment 111744 [details] stacktrace
Created attachment 111748 [details] Project that exhibits the error. 1) Open NewJPanel.java. 2) Right-click jTextField1 in designer and choose "Duplicate". This error occurs. This occurs on many other components if they are added to the Panel. Product Version: NetBeans IDE Dev (Build 201110070600) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
I was able to reproduce the metioned exception using the attached test-case. It seems to be a duplicate of issue 203272. Automatic exception reporter filled a new issue because the stack-trace is not exactly the same, but the difference is minor: there is just one more call to shouldDuplicateWholeGroup() in issue 203272. In other words, the same problem occured to a group that is nested deeper. *** This bug has been marked as a duplicate of bug 203272 ***