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 204044 - [71cat] NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutFeeder.compatibleInclusions
Summary: [71cat] 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.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 04:18 UTC by MackSix
Modified: 2011-11-16 15:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 182184


Attachments
stacktrace (3.05 KB, text/plain)
2011-10-21 04:18 UTC, MackSix
Details
Project that exhibits the error. (16.33 KB, application/zip)
2011-10-21 04:24 UTC, MackSix
Details
Screenshot of action. (198.36 KB, image/png)
2011-10-21 04:26 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-10-21 04:18:50 UTC
Build: NetBeans IDE Dev (Build 201110200600)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows Vista

User Comments:
MackSix: Moving a jSlider up with other components on the jFrame.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.compatibleInclusions(LayoutFeeder.java:4766)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeParallelInclusions(LayoutFeeder.java:4480)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:433)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1244)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1156)
   at org.netbeans.modules.form.HandleLayer$ExistingComponentDrag.end(HandleLayer.java:2826)
Comment 1 MackSix 2011-10-21 04:18:54 UTC
Created attachment 112283 [details]
stacktrace
Comment 2 MackSix 2011-10-21 04:24:59 UTC
Created attachment 112285 [details]
Project that exhibits the error.

1) Open Project in NetBeans.
2) Change to Designer View.
3) Move jSlider1 straight up and snap the bottom of it to the bottom of jRadioButton1. (See attached screenshot for position.)

This NullPointerException is thrown.

Product Version: NetBeans IDE Dev (Build 201110200600)
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-21 04:26:14 UTC
Created attachment 112286 [details]
Screenshot of action.
Comment 4 Jan Stola 2011-10-21 08:56:29 UTC
Thank you for a reproducible test-case. I am able to reproduce the exception using the attached project and the described steps.
Comment 5 Tomas Pavek 2011-11-15 17:17:09 UTC
Fixed.
http://hg.netbeans.org/jet-main/rev/7e77047ece9b
Comment 6 Quality Engineering 2011-11-16 15:50:34 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/7e77047ece9b
User: Tomas Pavek <tpavek@netbeans.org>
Log: #204044: fixing another case of using a group that was optimized out