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 203563 - NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutInterval.isPlacedAtBorder
Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutInterval...
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-12 05:30 UTC by MackSix
Modified: 2011-11-09 16:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 181909


Attachments
stacktrace (3.14 KB, text/plain)
2011-10-12 05:30 UTC, MackSix
Details
Project that exhibits the error. (23.91 KB, application/zip)
2011-10-12 05:34 UTC, MackSix
Details
Screenshot of action. (17.74 KB, image/png)
2011-10-12 05:36 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-10-12 05:30:29 UTC
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)
Comment 1 MackSix 2011-10-12 05:30:35 UTC
Created attachment 111899 [details]
stacktrace
Comment 2 MackSix 2011-10-12 05:34:47 UTC
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)
Comment 3 MackSix 2011-10-12 05:36:43 UTC
Created attachment 111901 [details]
Screenshot of action.

Snap jTextArea1 to bottom of jTabbedPane1.
Comment 4 Jan Stola 2011-10-12 15:04:10 UTC
Thank you for a reproducible test-case. I was able to reproduce the attached exception using the described steps.
Comment 5 Tomas Pavek 2011-11-08 18:43:16 UTC
Fixed.
http://hg.netbeans.org/jet-main/rev/87e2a51a3b7d
Comment 6 Quality Engineering 2011-11-09 16:11:46 UTC
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