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 193928 - [70cat] NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutFeeder.getExpectedBorderPosition
Summary: [70cat] 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.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-30 05:32 UTC by kuronai
Modified: 2011-10-24 14:08 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175464


Attachments
stacktrace (2.40 KB, text/plain)
2010-12-30 05:32 UTC, kuronai
Details
7.1 Dev Build 201110040601 - Project that exhibits the error. (22.83 KB, application/zip)
2011-10-05 08:11 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kuronai 2010-12-30 05:32:50 UTC
This bug was originally marked as duplicate of bug 131729, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05
OS: Windows Vista

User Comments:
sternix: i added swingx library and put a tree table on the frame and get this,

GUEST: Resize of the JTArea

GUEST: trato de alinear los textos

GUEST: WHY????!!!!!!!!!

GUEST: When I was changing the size of a textfield the error appear

GUEST: I was designing a form using the Synthetica LAF.

kuronai: Resizing a component in Swing GUI Editor

kaa: JavaApp:
added JFrame, added jList, jCombobox and jPanel, added JPanel




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.getExpectedBorderPosition(LayoutFeeder.java:1891)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.checkParallelResizing(LayoutFeeder.java:1799)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addInterval(LayoutFeeder.java:768)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:314)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:828)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:753)
Comment 1 kuronai 2010-12-30 05:32:54 UTC
Created attachment 104613 [details]
stacktrace
Comment 2 MackSix 2011-10-05 08:11:20 UTC
Created attachment 111505 [details]
7.1 Dev Build 201110040601 - Project that exhibits the error.

1. Choose jTree1.
2. Grab top handle and drag top of jTree1 and try to snap to top of jRadioButton1.

This error is thrown.

Product Version: NetBeans IDE Dev (Build 201110040601)
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)
User directory: C:\Users\Mark\.netbeans\dev
Cache directory: C:\Users\Mark\.netbeans\dev\var\cache
Comment 3 MackSix 2011-10-09 06:41:09 UTC
It happened again trying to vertically resize a jList.
Comment 4 Jan Stola 2011-10-11 16:11:27 UTC
Thank you for a reproducible test-case. I am able to reproduce the attached
exception using the described steps.
Comment 5 Tomas Pavek 2011-10-21 14:16:49 UTC
Fixed the last reported test case.
http://hg.netbeans.org/jet-main/rev/66c45634c09d
Comment 6 Quality Engineering 2011-10-24 14:08:17 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/66c45634c09d
User: Tomas Pavek <tpavek@netbeans.org>
Log: #193928: reset flag if new sugbroup is created in advanced, plus some related fixes