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 223384 - NullPointerException at org.netbeans.modules.form.layoutdesign.VisualState.updateCurrentSpaceOfComponents
Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.VisualState.up...
Status: RESOLVED DUPLICATE of bug 127881
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-12-06 11:32 UTC by Exceptions Reporter
Modified: 2013-01-08 16:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 196182


Attachments
stacktrace (2.32 KB, text/plain)
2012-12-06 11:32 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-12-06 11:32:31 UTC
This bug was originally marked as duplicate of bug 212953, 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.2.1 (Build 201210100934)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.form.layoutdesign.VisualState.updateCurrentSpaceOfComponents(VisualState.java:120)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateContainerAfterBuild(LayoutDesigner.java:3517)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateCurrentState(LayoutDesigner.java:321)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateCurrentState(LayoutDesigner.java:196)
   at org.netbeans.modules.form.FormDesigner.updateComponentLayer(FormDesigner.java:642)
   at org.netbeans.modules.form.FormDesigner.access$2100(FormDesigner.java:103)
Comment 1 Exceptions Reporter 2012-12-06 11:32:32 UTC
Created attachment 128952 [details]
stacktrace
Comment 2 Tomas Pavek 2013-01-08 16:05:15 UTC
The report from 7.2.1 (http://statistics.netbeans.org/exceptions/exception.do?id=636998) shows a failure in moving a component in navigator explorer. The failure then leads to the exception in VisualState (which indicates a missing component in the design view). I've made a workaround for this particular case: http://hg.netbeans.org/jet-main/rev/dad7b927a2f8

Otherwise (in the other report), the reason for missing component in design view seems to be the known problem with SwingX and classloaders:

java.lang.NullPointerException
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:186)
	at org.jdesktop.swingx.plaf.LookAndFeelAddons.getUI(LookAndFeelAddons.java:279)
	at org.jdesktop.swingx.JXTitledPanel.updateUI(JXTitledPanel.java:180)
	at javax.swing.JPanel.<init>(JPanel.java:86)
	at javax.swing.JPanel.<init>(JPanel.java:109)
	at javax.swing.JPanel.<init>(JPanel.java:117)
	at org.jdesktop.swingx.JXPanel.<init>(JXPanel.java:83)
	at org.jdesktop.swingx.JXTitledPanel.<init>(JXTitledPanel.java:125)
	at org.jdesktop.swingx.JXTitledPanel.<init>(JXTitledPanel.java:115)
	at org.jdesktop.swingx.JXTitledPanel.<init>(JXTitledPanel.java:105)
...

This is bug 127881.

*** This bug has been marked as a duplicate of bug 127881 ***