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

Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutFeeder.accommodateSizeInSequence
Product: guibuilder Reporter: MackSix
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 181691
Attachments: stacktrace
7.1 Dev Build 201110050601 - Project that exhibits the error.
7.1 Dev Build 201110050601 - Project that exhibits the error.

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