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 200810070201) VM: Java HotSpot(TM) Client VM, 10.0-b24, Java(TM) SE Runtime Environment, 1.6.0_07-rev-b07 OS: Linux, 2.6.24-19-generic, i386 User Comments: joshis: I moved a left edge of a separator to the right (it was probably not aligned anywhere, neither originally nor after I moved it). It happened when I was working with NB sources - when I attempted to move a separator by the "camel case behavior" in "Tools>Options>Editor>General" tab... Stacktrace: java.lang.NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutUtils$ComponentIterator.findNext(LayoutUtils.java:546) at org.netbeans.modules.form.layoutdesign.LayoutUtils$ComponentIterator.next(LayoutUtils.java:563) at org.netbeans.modules.form.layoutdesign.LayoutUtils.contentOverlap(LayoutUtils.java:434) at org.netbeans.modules.form.layoutdesign.LayoutOperations.prepareGroupExtension(LayoutOperations.java:627) at org.netbeans.modules.form.layoutdesign.LayoutOperations.findIntervalToExtend(LayoutOperations.java:601) at org.netbeans.modules.form.layoutdesign.LayoutOperations.moveInsideSequential(LayoutOperations.java:472)
Created attachment 71448 [details] stacktrace
Build: NetBeans IDE Dev (Build 200810070201) VM: Java HotSpot(TM) Client VM, 10.0-b24, Java(TM) SE Runtime Environment, 1.6.0_07-rev-b07 OS: Linux, 2.6.24-19-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutUtils$ComponentIterator.findNext(LayoutUtils.java:546) at org.netbeans.modules.form.layoutdesign.LayoutUtils$ComponentIterator.next(LayoutUtils.java:563) at org.netbeans.modules.form.layoutdesign.LayoutUtils.contentOverlap(LayoutUtils.java:434) at org.netbeans.modules.form.layoutdesign.LayoutOperations.prepareGroupExtension(LayoutOperations.java:627) at org.netbeans.modules.form.layoutdesign.LayoutOperations.findIntervalToExtend(LayoutOperations.java:601) at org.netbeans.modules.form.layoutdesign.LayoutOperations.moveInsideSequential(LayoutOperations.java:472)
Created attachment 71450 [details] stacktrace
AE described in issue 70661 was thrown before this happened...
Can you please attach here the form (.form and .java files) where the exception happened and specify which component exactly (its name) you resized? I don't really know where to find "camel case behavior" in "Tools>Options>Editor>General". Thanks
Sure - I am attaching a project. To reproduce the exception: 1. Open the form in designer -> you will see the separator in the bottom goes through the label "camel case behavior" 2. Drag left edge of the separator so that it is approx. bellow letter 'g' of word "closing" 3. Drag the whole separator to the left so that it is aligned with the label "Camel Case Behavior" 4. Drag the whole separator to the right so that it is aligned with a right edge of the form -> NPE Are you able to reproduce the exception now?
Created attachment 71486 [details] Sample project with a panel from options.editor module...
Thank you for your sample project, now we are able to reproduce it. I found simpler steps to reproduce, check the attached movie. Reproducible using ... Product Version: NetBeans IDE Dev (Build 200812030201) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)
Created attachment 74695 [details] 149608.wmv
Still valid Product Version: NetBeans IDE Dev (Build 201110030601) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)
The attached sample form is broken in that one of its components is placed twice (on two places) in the layout definition (this form is old, hopefully this cannot happen anymore). The layout model is then in an inconsistent state and the exception is just a result of that. I've implemented a fix to detect and workaround such case when the form is opened. It also improves fix of bug 118562. http://hg.netbeans.org/jet-main/rev/4de8d93cbcd6
Integrated into 'main-golden', will be available in build *201206150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4de8d93cbcd6 User: Tomas Pavek <tpavek@netbeans.org> Log: #149608: workaround for bad (old) forms that might have a component interval placed more than once in the layout