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.
|Summary:||NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeInclusionsInCommonSequence|
|Component:||Natural Layout||Assignee:||issues@guibuilder <issues>|
|Issue Type:||DEFECT||Exception Reporter:||181843|
Project that exhibits the error.
Project that exhibits the error.
Project that exhibits the error 2.
AWT component project that exhibits the error.
Screenshot of action.
Description MackSix 2011-10-10 15:29:50 UTC
Build: NetBeans IDE Dev (Build 201110100600) VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Windows Vista User Comments: MackSix: Moved a jTextArea from the left side of a jPanel to the right side. Positioned under a jList. Will try to reproduce. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeInclusionsInCommonSequence(LayoutFeeder.java:5041) at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeSequentialInclusions(LayoutFeeder.java:4759) at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:506) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1241) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1153) at org.netbeans.modules.form.HandleLayer$ExistingComponentDrag.end(HandleLayer.java:2752)
Comment 2 MackSix 2011-10-10 15:33:54 UTC
Created attachment 111793 [details] Project that exhibits the error. Try to move jTextArea2 to the right and snap it to a preferred distance from the bottom of jList2. This error occurs. Product Version: NetBeans IDE Dev (Build 201110100600) 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-10 15:36:47 UTC
Also, before this happened, the snap to guide lines were missing from the top of jProgressBar1 when I tried to vertically resize jTextArea2 or jList2 and snap to the top of it. It has something to do with the jButton2, because if I moved it up some, the snap guides returned.
Comment 4 MackSix 2011-10-10 15:40:55 UTC
Also if I vertically resize the bottom of jList1 down and then move it back up and snap to the bottom of jTextArea1, it throws this error that should be fixed in the next Dev download. https://netbeans.org/bugzilla/show_bug.cgi?id=203112
Comment 5 MackSix 2011-10-10 16:10:04 UTC
Comment on attachment 111793 [details] Project that exhibits the error. Arrrrg, I did it again. Wrong project.
Comment 6 MackSix 2011-10-10 16:16:52 UTC
Created attachment 111798 [details] Project that exhibits the error. Here is the correct project, but I can't get this error to occur. But it does throw errors trying to vertically resize the jList2. It also throws this one too: https://netbeans.org/bugzilla/show_bug.cgi?id=203182
Comment 7 MackSix 2011-10-10 16:31:01 UTC
Created attachment 111801 [details] Project that exhibits the error 2. This is the same project, but now it is throwing https://netbeans.org/bugzilla/show_bug.cgi?id=191075 whenever I try to move jTextArea2 over to the right and snap it up to a preferred distance from jList2. So maybe this is fixed already.
Comment 8 Jan Stola 2011-10-11 09:31:29 UTC
This report became a slightly confusing mix of test-cases for various exceptions, but if I understand correctly then none of the attached test-cases result in the original exception of this report, i.e., in NPE from mergeInclusionsInCommonSequence(). At least, I was not able to reproduce this exception using any of the test-cases. Hence, I am closing this issue as incomplete (=as missing steps to reproduce). (In reply to comment #7) > Created an attachment (id=111801) [details] > Project that exhibits the error 2. > > This is the same project, but now it is throwing > https://netbeans.org/bugzilla/show_bug.cgi?id=191075 whenever I try to move > jTextArea2 over to the right and snap it up to a preferred distance from > jList2. I found this test-case useful. It shows how to reproduce exception that we don't have reported yet (note that the issue 191075 was fixed already and has a different stack trace). So, I filled a new bug for this test-case: issue 203486
Comment 9 MackSix 2011-10-11 09:49:47 UTC
See Comment #6 The attachment id=111798 is file 532582.zip. That project did throw this exception as recorded here: http://statistics.netbeans.org/analytics/exception.do?id=532582 I should have linked to this before.
Comment 10 MackSix 2011-10-11 09:54:05 UTC
In comment #6 I should have said, "I can't get the file to throw the exception again, but it did throw the exception." ;)
Comment 11 Jan Stola 2011-10-11 10:00:15 UTC
I am even more confused by this issue. So, I have a simple question: Are you still able to reproduce this exception? If so, which project should I use and what steps should I follow?
Comment 12 MackSix 2011-10-11 10:07:50 UTC
The file from comment #6 was saved exactly in the state it was before this error occurred. Although I could not get it to throw the error again after reopening it in the saved state. It really did throw this exception as recorded in Exception #532582. So at this point, I have no file that I can reproduce the error. Thanks
Comment 13 Jan Stola 2011-10-11 11:18:45 UTC
> So at this point, I have no file that I can reproduce the error. Thank you for clarification. So, I believe that the issue is in the correct (=incomplete) state now. Feel free to reopen it if you find steps to reproduce but leave it closed otherwise (FYI: I was confused why you reopened this issue with your comment #9 when there were no additional information provided).
Comment 14 MackSix 2011-10-13 22:46:00 UTC
Created attachment 112024 [details] AWT component project that exhibits the error. 1) Open Project in NetBeans. 2) Open NewJFrame.java in Designer. 3) Try to move textArea2 over next to checkbox4 and snap to bottom & rightside of checkbox4. See attached picture for placement location. This NullPointerException is thrown. Product Version: NetBeans IDE Dev (Build 201110120600) 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 15 MackSix 2011-10-13 22:48:35 UTC
Created attachment 112026 [details] Screenshot of action. Screenshot of new AWT Project showing placement of textArea2.
Comment 16 Jan Stola 2011-10-17 15:26:13 UTC
Thank you for a reproducible test-case. I am able to reproduce the exception using the project attached with comment #14 and steps described there.