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.
Build: NetBeans IDE Dev (Build 201110110600) VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Windows Vista User Comments: MackSix: Resize jTexArea Vertically and snap bottom along bottom of jTabbedPane that is on the left side. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutInterval.isPlacedAtBorder(LayoutInterval.java:824) at org.netbeans.modules.form.layoutdesign.LayoutFeeder.snapEqualToParallelSnap(LayoutFeeder.java:1533) at org.netbeans.modules.form.layoutdesign.LayoutFeeder.checkResizing2(LayoutFeeder.java:1472) at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:512) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1241) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1153)
Created attachment 111899 [details] stacktrace
Created attachment 111900 [details] Project that exhibits the error. 1) Open attached project. 2) Open NewJFrame.java in Designer. 3) Grab bottom handle of jTextArea1 and resize vertically downward. 4) Snap to jTabbedPane1 bottom guide as shown in attached screenshot. This NullPointerException is thrown. Product Version: NetBeans IDE Dev (Build 201110110600) 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)
Created attachment 111901 [details] Screenshot of action. Snap jTextArea1 to bottom of jTabbedPane1.
Thank you for a reproducible test-case. I was able to reproduce the attached exception using the described steps.
Fixed. http://hg.netbeans.org/jet-main/rev/87e2a51a3b7d
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/87e2a51a3b7d User: Tomas Pavek <tpavek@netbeans.org> Log: #203563: avoid snapping to empty parallel group that was optimized out