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 203182 - NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutFeeder.accommodateSizeInSequence
Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutFeeder.a...
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:
Depends on:
Blocks:
 
Reported: 2011-10-05 21:24 UTC by MackSix
Modified: 2011-10-12 14:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 181691


Attachments
stacktrace (3.14 KB, text/plain)
2011-10-05 21:24 UTC, MackSix
Details
7.1 Dev Build 201110050601 - Project that exhibits the error. (23.57 KB, application/zip)
2011-10-05 21:36 UTC, MackSix
Details
7.1 Dev Build 201110050601 - Project that exhibits the error. (23.75 KB, application/zip)
2011-10-06 03:27 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-10-05 21:24:42 UTC
This bug was originally marked as duplicate of bug 117472, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201110050601)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows Vista

User Comments:
MackSix: Vertical resize of jPanel near other jPanels on jFrame.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.accommodateSizeInSequence(LayoutFeeder.java:3080)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.accommodateOutPosition(LayoutFeeder.java:2951)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addInterval(LayoutFeeder.java:1801)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:516)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1204)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1116)
Comment 1 MackSix 2011-10-05 21:24:47 UTC
Created attachment 111566 [details]
stacktrace
Comment 2 MackSix 2011-10-05 21:36:43 UTC
Created attachment 111567 [details]
7.1 Dev Build 201110050601 - Project that exhibits the error.

1. Grab top of jPanel2 and vertically re-size smaller.
2. Snap to top of jPanel1.

Error occurs.


Product Version: NetBeans IDE Dev (Build 201110050601)
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 MackSix 2011-10-06 03:27:17 UTC
Created attachment 111570 [details]
7.1 Dev Build 201110050601 - Project that exhibits the error.

1. Move jCheckBox1 up and snap to "preferred distance from containers upper border".

Error occurs.

Product Version: NetBeans IDE Dev (Build 201110050601)
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 4 Jan Stola 2011-10-09 13:30:05 UTC
Thank you for reproducible test-cases. I was able to reproduce the mentioned
exception in both cases (using the latest development build).
Comment 5 Tomas Pavek 2011-10-11 13:44:48 UTC
Fixed.
http://hg.netbeans.org/jet-main/rev/7231f7c141e3
Comment 6 Quality Engineering 2011-10-12 14:27:15 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/7231f7c141e3
User: Tomas Pavek <tpavek@netbeans.org>
Log: #203182: correction in finding the last but one aligned components at a group edge