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 224531 - NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutPainter.paintGaps
Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutPainter....
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-06 09:14 UTC by Alpha-Programmer
Modified: 2013-01-08 02:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 197217


Attachments
stacktrace (5.08 KB, text/plain)
2013-01-06 09:14 UTC, Alpha-Programmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alpha-Programmer 2013-01-06 09:14:54 UTC
This bug was originally marked as duplicate of bug 213936, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.layoutdesign.LayoutPainter.paintGaps(LayoutPainter.java:539)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.paintSelection(LayoutDesigner.java:1469)
   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 Alpha-Programmer 2013-01-06 09:14:56 UTC
Created attachment 129929 [details]
stacktrace
Comment 2 Tomas Pavek 2013-01-07 19:03:52 UTC
I was not able to reproduce it, but it's probably a similar case to bug 213936, the difference is that here a component is selected (not a container). Implemented an analogous workaround.

http://hg.netbeans.org/jet-main/rev/cd30f2222f41
Comment 3 Quality Engineering 2013-01-08 02:24:38 UTC
Integrated into 'main-golden', will be available in build *201301080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cd30f2222f41
User: Tomas Pavek <tpavek@netbeans.org>
Log: #224402: repaint may happen after a failure that was not undone yet; #224531: perhaps simlar case of not yet built container as in bug 213936