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 203404 - NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutDesigner.shouldDuplicateWholeGroup
Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutDesigner...
Status: RESOLVED DUPLICATE of bug 203272
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-10 02:17 UTC by MackSix
Modified: 2011-10-10 11:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 181808


Attachments
stacktrace (3.80 KB, text/plain)
2011-10-10 02:17 UTC, MackSix
Details
Project that exhibits the error. (17.19 KB, application/zip)
2011-10-10 03:40 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-10-10 02:17:45 UTC
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)
Comment 1 MackSix 2011-10-10 02:17:49 UTC
Created attachment 111744 [details]
stacktrace
Comment 2 MackSix 2011-10-10 03:40:28 UTC
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)
Comment 3 Jan Stola 2011-10-10 11:48:14 UTC
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 ***