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 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)
Created attachment 91684 [details] stacktrace
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.
Created attachment 112289 [details] Screenshot of action.
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)
Thank you for the additional information. I am able to reproduce the exception now.
Fixed the last reported test case. http://hg.netbeans.org/jet-main/rev/ea3c6f4b2edb
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