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 204705 - [71cat] NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutInterval.isPlacedAtBorder
Summary: [71cat] NullPointerException at org.netbeans.modules.form.layoutdesign.Layout...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 213341 213342 214661 215560 215795 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-05 06:46 UTC by MackSix
Modified: 2012-09-04 14:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182618


Attachments
stacktrace (3.33 KB, text/plain)
2011-11-05 06:46 UTC, MackSix
Details
Project that exhibits the error. (71.88 KB, application/zip)
2011-11-05 07:19 UTC, MackSix
Details
Screenshot of action. (212.41 KB, image/png)
2011-11-05 07:20 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-11-05 06:46:33 UTC
Build: NetBeans IDE Dev (Build 201111040600)
VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows Vista

User Comments:
MackSix: Moving a group of 3 jRadioButtons up.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.layoutdesign.LayoutInterval.isPlacedAtBorder(LayoutInterval.java:838)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.canSubstAlignWithParent(LayoutFeeder.java:5676)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.canAlignWith(LayoutFeeder.java:5649)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addToGroup(LayoutFeeder.java:2119)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeParallelInclusions(LayoutFeeder.java:4615)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:433)
Comment 1 MackSix 2011-11-05 06:46:36 UTC
Created attachment 112858 [details]
stacktrace
Comment 2 MackSix 2011-11-05 07:19:25 UTC
Created attachment 112861 [details]
Project that exhibits the error.

1) Open Project and NewJFrame.java
2) Choose jRadioButton1, jRadioButton2 and jRadioButton3 and try to move up and snap to upper corner of frame at a preferred distance. See screenshot for placement.

This exception is thrown.
Comment 3 MackSix 2011-11-05 07:20:10 UTC
Created attachment 112862 [details]
Screenshot of action.
Comment 4 MackSix 2011-11-05 07:21:48 UTC
This is the 3rd out of 3 exception this form has thrown. It was created in a previous version. I think it is just a bad form to start with because I can recreate it from scratch and move and size things just fine.
Comment 5 Jan Stola 2011-11-07 10:32:52 UTC
Thank you for the test-case. I am able to reproduce the mentioned exception
using the attached project and the described steps.
Comment 6 Tomas Pavek 2011-11-16 15:57:42 UTC
I can reproduce it in 201111110600, but not in build from current sources. Some of the recent fixes must have fixed this as well.
Comment 7 Marian Mirilovic 2012-06-05 07:16:29 UTC
New duplicate came from NB 7.1.2, see issue 213341
Comment 8 Marian Mirilovic 2012-06-05 07:16:43 UTC
*** Bug 213341 has been marked as a duplicate of this bug. ***
Comment 9 Tomas Pavek 2012-06-05 13:38:37 UTC
I still can't reproduce on the original test case, but found a place in the code that could cause this, so tried to make a workaround.
http://hg.netbeans.org/jet-main/rev/e2de3a134674
Comment 10 Quality Engineering 2012-06-08 06:09:39 UTC
Integrated into 'main-golden', will be available in build *201206080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e2de3a134674
User: Tomas Pavek <tpavek@netbeans.org>
Log: #204705: trying to avoid situation when snapping to group that gets optimized out
Comment 11 Tomas Pavek 2012-06-11 16:12:58 UTC
*** Bug 213342 has been marked as a duplicate of this bug. ***
Comment 12 Tomas Pavek 2012-06-26 13:19:33 UTC
*** Bug 214661 has been marked as a duplicate of this bug. ***
Comment 13 Tomas Pavek 2012-09-04 14:08:30 UTC
*** Bug 215560 has been marked as a duplicate of this bug. ***
Comment 14 Tomas Pavek 2012-09-04 14:08:48 UTC
*** Bug 215795 has been marked as a duplicate of this bug. ***