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 212971 - NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutInterval.contentWantResize
Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutInterval...
Status: RESOLVED DUPLICATE of bug 213123
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-05-24 18:23 UTC by Michel Graciano
Modified: 2012-06-05 14:20 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 188327


Attachments
stacktrace (4.48 KB, text/plain)
2012-05-24 18:24 UTC, Michel Graciano
Details
Sample project (15.75 KB, application/zip)
2012-05-24 18:27 UTC, Michel Graciano
Details
stacktrace (4.48 KB, text/plain)
2012-05-31 15:31 UTC, tim_sa
Details
stacktrace (4.48 KB, text/plain)
2012-05-31 15:34 UTC, tim_sa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-05-24 18:23:55 UTC
Build: NetBeans IDE Dev (Build 20120523-da4743d1f776)
VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.layoutdesign.LayoutInterval.contentWantResize(LayoutInterval.java:967)
   at org.netbeans.modules.form.layoutdesign.LayoutPosition.isFixedRelativePosition(LayoutPosition.java:725)
   at org.netbeans.modules.form.layoutdesign.LayoutPosition.getSequentialPosition(LayoutPosition.java:602)
   at org.netbeans.modules.form.layoutdesign.LayoutPosition.getOriginalPosition(LayoutPosition.java:209)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.<init>(LayoutFeeder.java:126)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.createFeeder(LayoutDesigner.java:958)
Comment 1 Michel Graciano 2012-05-24 18:24:03 UTC
Created attachment 119837 [details]
stacktrace
Comment 2 Michel Graciano 2012-05-24 18:27:59 UTC
Created attachment 119838 [details]
Sample project

To reproduce, open the attached project and the form in that.

1. Select all the controls (using the navigator for example), and copy than (Ctrl + C)
2. Click at a form clean area and paste the components you have copied.
3. You should be able to see the exception after calling the paste operation.
Comment 3 Michel Graciano 2012-05-24 18:28:41 UTC
Sorry for the messy names, but actually I am trying to create a use case for issue #212953 :(
Comment 4 tim_sa 2012-05-31 15:31:03 UTC
Created attachment 120147 [details]
stacktrace

pasting items onto Panel in UI builder
Comment 5 tim_sa 2012-05-31 15:34:03 UTC
Created attachment 120148 [details]
stacktrace
Comment 6 Tomas Pavek 2012-06-05 14:20:54 UTC
Fixed as bug 213123.

*** This bug has been marked as a duplicate of bug 213123 ***