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 201205200400) VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20 OS: Linux User Comments: asenk: 1) Place some awt component into swing JFrame 2) Change the size of gap (use mouse wheel) 3) When the size of the gap is zero -> this exception is thrown Stacktrace: java.lang.NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutDragger.paintGapResizingSnap(LayoutDragger.java:702) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.paintSelection(LayoutDesigner.java:1579) at org.netbeans.modules.form.HandleLayer.paintLayoutInnerSelection(HandleLayer.java:425) at org.netbeans.modules.form.HandleLayer.paintComponent(HandleLayer.java:321) at javax.swing.JComponent.paint(JComponent.java:1054) at javax.swing.JComponent.paintChildren(JComponent.java:887)
Created attachment 119666 [details] stacktrace
Created attachment 119667 [details] Problem project Unfortunately I have no accurate steps to reproduce. I attach the problem project. See NewJFrame.java class in form72 package
Good catch. I was able to reproduce and fix. http://hg.netbeans.org/jet-main/rev/691d6d72cf20
Integrated into 'main-golden', will be available in build *201205220903* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/691d6d72cf20 User: Tomas Pavek <tpavek@netbeans.org> Log: #212762: gap resized to -1 should not be considered default
Product Version: NetBeans IDE 7.2 RC1 (Build 201206141830) Java: 1.7.0_05; Java HotSpot(TM) Client VM 23.1-b03 System: Linux version 3.2.0-25-generic-pae running on i386; UTF-8; en_US (nb) Verified