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 168214

Summary: NPE at com.sun.java.swing.plaf.nimbus.NimbusStyle.init(NimbusStyle.java:418)
Product: ide Reporter: mslama <mslama>
Component: LoggerAssignee: Jindrich Sedek <jsedek>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description mslama 2009-07-07 09:35:16 UTC
Looks like race condition. Should be called from AWT thread.

java.lang.NullPointerException
    at com.sun.java.swing.plaf.nimbus.NimbusStyle.init(NimbusStyle.java:418)
    at com.sun.java.swing.plaf.nimbus.NimbusStyle.validate(NimbusStyle.java:359)
    at com.sun.java.swing.plaf.nimbus.NimbusStyle.getValues(NimbusStyle.java:927)
    at com.sun.java.swing.plaf.nimbus.NimbusStyle.getInsets(NimbusStyle.java:605)
    at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:896)
    at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:276)
    at javax.swing.plaf.synth.SynthTextFieldUI.updateStyle(SynthTextFieldUI.java:62)
    at javax.swing.plaf.synth.SynthTextFieldUI.installDefaults(SynthTextFieldUI.java:218)
    at javax.swing.plaf.basic.BasicTextUI.installUI(BasicTextUI.java:765)
    at javax.swing.plaf.synth.SynthTextFieldUI.installUI(SynthTextFieldUI.java:235)
    at javax.swing.JComponent.setUI(JComponent.java:673)
    at javax.swing.text.JTextComponent.setUI(JTextComponent.java:322)
    at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:332)
    at javax.swing.text.JTextComponent.<init>(JTextComponent.java:306)
    at javax.swing.JTextField.<init>(JTextField.java:212)
    at javax.swing.JTextField.<init>(JTextField.java:153)
    at org.netbeans.modules.exceptions.ReportPanel.initComponents(ReportPanel.java:76)
    at org.netbeans.modules.exceptions.ReportPanel.<init>(ReportPanel.java:60)
    at org.netbeans.modules.uihandler.Installer$SubmitInteractive.createDialog(Installer.java:1802)
    at org.netbeans.modules.uihandler.Installer$Submit.run(Installer.java:1493)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
Comment 1 mslama 2009-07-07 09:37:36 UTC
From nbusers:
I confirm that: Windows XP & Java JDK 1.6.0_14-b08 :
Netbeans 6.7 crashes when started with "-laf Nimbus" parameter (same log like Rhizomorph posted) and when you preview a
form file in the NB designer with Nimbus LaF, the form doesn't show.
Comment 2 Stanislav Aubrecht 2009-09-01 11:57:16 UTC
there's a similar report even when the component has been created on AWT thread:
http://www.netbeans.org/issues/show_bug.cgi?id=168636
Comment 3 Jindrich Sedek 2009-09-07 13:10:55 UTC
*** Issue 170468 has been marked as a duplicate of this issue. ***
Comment 4 Marian Mirilovic 2011-06-10 15:19:10 UTC

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