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 242074

Summary: NullPointerException at org.netbeans.modules.form.layoutdesign.VisualState.updateCurrentSpaceOfComponents
Product: guibuilder Reporter: Exceptions Reporter <exceptions_reporter>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207761
Attachments: stacktrace

Description Exceptions Reporter 2014-02-19 04:43:45 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 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b67, Java(TM) SE Runtime Environment, 1.8.0-b126
OS: Linux

User Comments:
GUEST: design lost




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:3567)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateCurrentState(LayoutDesigner.java:359)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateCurrentState(LayoutDesigner.java:205)
   at org.netbeans.modules.form.FormDesigner.updateComponentLayer(FormDesigner.java:641)
   at org.netbeans.modules.form.FormDesigner.access$2200(FormDesigner.java:103)
Comment 1 Exceptions Reporter 2014-02-19 04:43:47 UTC
Created attachment 145383 [details]
stacktrace
Comment 2 Tomas Pavek 2014-02-19 14:13:25 UTC
The original exception (found in the attached log file) that caused the reported one looks like the same problem fixed recently as bug 127881.

java.lang.NullPointerException
	at org.jdesktop.swingx.JXSearchField.customSetUIProperty(JXSearchField.java:751)
	at org.jdesktop.swingx.JXSearchField.customSetUIProperty(JXSearchField.java:729)
	at org.jdesktop.swingx.plaf.SearchFieldUI.installDefaults(SearchFieldUI.java:217)
	at org.jdesktop.swingx.plaf.SearchFieldUI.installUI(SearchFieldUI.java:73)
	at javax.swing.JComponent.setUI(JComponent.java:663)
	at javax.swing.text.JTextComponent.setUI(JTextComponent.java:330)
	at org.jdesktop.swingx.plaf.TextUIWrapper.replaceUIIfNeeded(TextUIWrapper.java:67)
	at org.jdesktop.swingx.plaf.TextUIWrapper$DefaultWrapper.replaceUIIfNeeded(TextUIWrapper.java:159)
	at org.jdesktop.swingx.plaf.TextUIWrapper.install(TextUIWrapper.java:49)
	at org.jdesktop.swingx.prompt.PromptSupport.setPrompt(PromptSupport.java:180)
	at org.jdesktop.swingx.prompt.PromptSupport.init(PromptSupport.java:114)
	at org.jdesktop.swingx.JXTextField.<init>(JXTextField.java:38)
	at org.jdesktop.swingx.JXTextField.<init>(JXTextField.java:33)
	at org.jdesktop.swingx.JXTextField.<init>(JXTextField.java:29)
	at org.jdesktop.swingx.JXSearchField.<init>(JXSearchField.java:174)
	at org.jdesktop.swingx.JXSearchField.<init>(JXSearchField.java:164)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
	at java.lang.Class.newInstance(Class.java:433)
	at org.netbeans.modules.form.CreationFactory.createDefaultInstance(CreationFactory.java:178)
	at org.netbeans.modules.form.RADComponent.createBeanInstance(RADComponent.java:252)
[catch] at org.netbeans.modules.form.RADComponent.cloneBeanInstance(RADComponent.java:421)
	at org.netbeans.modules.form.VisualReplicator.cloneComponent(VisualReplicator.java:766)
...

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