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 212762 - NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutDragger.paintGapResizingSnap
Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutDragger....
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-21 07:54 UTC by asenk
Modified: 2012-06-18 14:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 188144


Attachments
stacktrace (5.44 KB, text/plain)
2012-05-21 07:54 UTC, asenk
Details
Problem project (36.89 KB, application/zip)
2012-05-21 07:59 UTC, asenk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description asenk 2012-05-21 07:54:40 UTC
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)
Comment 1 asenk 2012-05-21 07:54:45 UTC
Created attachment 119666 [details]
stacktrace
Comment 2 asenk 2012-05-21 07:59:39 UTC
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
Comment 3 Tomas Pavek 2012-05-21 14:50:41 UTC
Good catch. I was able to reproduce and fix.
http://hg.netbeans.org/jet-main/rev/691d6d72cf20
Comment 4 Quality Engineering 2012-05-22 16:29:37 UTC
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
Comment 5 asenk 2012-06-18 14:05:29 UTC
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