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 177608 - NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutFeeder.canCombine
Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutFeeder.c...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 09:43 UTC by Maros Sandor
Modified: 2011-10-25 14:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 71014


Attachments
stacktrace (2.45 KB, text/plain)
2009-11-25 09:43 UTC, Maros Sandor
Details
Screenshot of action. (220.23 KB, image/png)
2011-10-21 06:02 UTC, MackSix
Details
Project that exhibits the error. (26.58 KB, application/zip)
2011-10-21 06:05 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maros Sandor 2009-11-25 09:43:53 UTC
Build: NetBeans IDE Dev (Build 200911171401)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-16-generic, i386

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.form.layoutdesign.LayoutFeeder.canCombine(LayoutFeeder.java:2991)
        at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeSequentialInclusions(LayoutFeeder.java:2622)
        at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:308)
        at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:825)
        at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:750)
        at org.netbeans.modules.form.HandleLayer$ResizeComponentDrag.end(HandleLayer.java:2826)
Comment 1 Maros Sandor 2009-11-25 09:43:58 UTC
Created attachment 91684 [details]
stacktrace
Comment 2 Jan Stola 2009-11-27 03:00:09 UTC
I am sorry, I am not able to reproduce this issue and the attached stack-trace is not sufficient to track the problem down. It is clear what is null, but it is not clear how this can happen and what to do in this case.

Are you still able to reproduce this problem? If so, could you, please, provide more details? It would be ideal to attach the problematic form (both .form and .java files) saved in the last good state and describe _exact_ steps that lead to this exception. Thank you in advance.
Comment 3 MackSix 2011-10-21 06:02:11 UTC
Created attachment 112289 [details]
Screenshot of action.
Comment 4 MackSix 2011-10-21 06:05:05 UTC
Created attachment 112290 [details]
Project that exhibits the error.

1) Open Project in NetBeans.
2) Open NewJFrame.java in designer.
3) Resize jTextArea1 by vertically pulling the right side to the right until it snaps to the blue dashed line inside of it. (See screenshot for placement.)

The 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 5 Jan Stola 2011-10-21 09:08:47 UTC
Thank you for the additional information. I am able to reproduce the exception now.
Comment 6 Tomas Pavek 2011-10-23 16:35:06 UTC
Fixed the last reported test case.
http://hg.netbeans.org/jet-main/rev/ea3c6f4b2edb
Comment 7 Quality Engineering 2011-10-25 14:40:07 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/ea3c6f4b2edb
User: Tomas Pavek <tpavek@netbeans.org>
Log: #177608: better detection of same overlapping situation (before vs after move)
#177935: don't use the original "close" position if the new one is in the same group but narrower