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 212751 - NPE in VisualReplicator.updateContainerLayout (was: NPE in JFileChooser.updateUI)
Summary: NPE in VisualReplicator.updateContainerLayout (was: NPE in JFileChooser.updat...
Status: RESOLVED DUPLICATE of bug 127881
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-20 17:48 UTC by rano_raharja
Modified: 2013-01-08 16:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 188132


Attachments
stacktrace (7.56 KB, text/plain)
2012-05-20 17:48 UTC, rano_raharja
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rano_raharja 2012-05-20 17:48:36 UTC
This bug was originally marked as duplicate of bug 179016, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans Platform 7.0 (Build 201104080000)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Windows 7

User Comments:
rano_raharja: I want add an icon to windowTopComponent




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.JFileChooser.updateUI(JFileChooser.java:1765)
   at javax.swing.JFileChooser.setup(JFileChooser.java:360)
   at javax.swing.JFileChooser.<init>(JFileChooser.java:333)
   at javax.swing.JFileChooser.<init>(JFileChooser.java:286)
   at org.netbeans.modules.apisupport.project.ui.UIUtil$IconFileChooser.<init>(UIUtil.java:857)
   at org.netbeans.modules.apisupport.project.ui.UIUtil$IconFileChooser.<init>(UIUtil.java:855)
Comment 1 rano_raharja 2012-05-20 17:48:41 UTC
Created attachment 119655 [details]
stacktrace
Comment 2 Jesse Glick 2012-05-21 16:23:29 UTC
As in bug #179016, perhaps triggered by an earlier exception:

java.lang.NullPointerException
	at org.netbeans.modules.form.VisualReplicator.updateContainerLayout(VisualReplicator.java:296)

Probably a Swing bug in there too. Best to use the latest JDK update (and maybe update NetBeans to 7.1.2 as well).
Comment 3 Tomas Pavek 2012-09-04 16:15:00 UTC
Perhaps one of the problems with SwingX components as described in bug 127881.

java.lang.NullPointerException
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:169)
	at org.jdesktop.swingx.plaf.LookAndFeelAddons.getUI(LookAndFeelAddons.java:303)
	at org.jdesktop.swingx.calendar.JXMonthView.updateUI(JXMonthView.java:305)
	at org.jdesktop.swingx.calendar.JXMonthView.<init>(JXMonthView.java:261)
	at org.jdesktop.swingx.calendar.JXMonthView.<init>(JXMonthView.java:247)
	at org.jdesktop.swingx.JXDatePicker.<init>(JXDatePicker.java:128)
	at org.jdesktop.swingx.JXDatePicker.<init>(JXDatePicker.java:112)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at org.netbeans.modules.form.CreationFactory.createDefaultInstance(CreationFactory.java:168)
	at org.netbeans.modules.form.RADComponent.createBeanInstance(RADComponent.java:252)
[catch] at org.netbeans.modules.form.RADComponent.cloneBeanInstance(RADComponent.java:412)
	at org.netbeans.modules.form.VisualReplicator.cloneComponent(VisualReplicator.java:693)
...
Comment 4 Tomas Pavek 2013-01-08 16:06:11 UTC

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