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.
Product Version: NetBeans IDE Dev (Build 20080812130418) Java: 1.5.0_14; Java HotSpot(TM) Client VM 1.5.0_14-b03 System: SunOS version 5.10 running on sparc; ISO646-US; en (nb) Description: ============ I have created Sample project ClientEditor, built it and tried to run. I got NPE in output win Other Sample projects seems to be OK in this manner Seems to be a problem with L&F on solaris ??? StackTrace: ========== Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at clienteditor.ClientEditor.addPropertyChangeListener(ClientEditor.java:72) at javax.swing.plaf.synth.SynthPanelUI.installListeners(SynthPanelUI.java:49) at javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:38) at javax.swing.JComponent.setUI(JComponent.java:653) at javax.swing.JPanel.setUI(JPanel.java:131) at javax.swing.JPanel.updateUI(JPanel.java:104) at javax.swing.JPanel.<init>(JPanel.java:64) at javax.swing.JPanel.<init>(JPanel.java:87) at javax.swing.JPanel.<init>(JPanel.java:95) at clienteditor.ClientEditor.<init>(ClientEditor.java:44) at clienteditor.ClientEditor$1.run(ClientEditor.java:334) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Reproducible - it occurs when the sample is run on any Synth look and feel e.g. on GTKLookAndFeel on Solaris or Linux or on NimbusLookAndFeel on Windows. I will modify the template to avoid this exception.
Fixed - the fix of this issue even led to the simplification of this sample. Modified file: http://hg.netbeans.org/main/rev/2afbf40b7366