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 154164 - NullPointerException at org.netbeans.core.windows.view.ui.toolbars.ToolbarContainer.getName
Summary: NullPointerException at org.netbeans.core.windows.view.ui.toolbars.ToolbarCon...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Stanislav Aubrecht
URL: http://statistics.netbeans.org/except...
Keywords:
: 154118 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-30 12:54 UTC by stefanv
Modified: 2013-12-11 14:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 142837


Attachments
stacktrace (2.32 KB, text/plain)
2008-11-30 12:54 UTC, stefanv
Details
stacktrace (3.42 KB, text/plain)
2008-12-01 07:26 UTC, Petr Chytil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefanv 2008-11-30 12:54:16 UTC
Build: NetBeans IDE Dev (Build 200811300201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-10-generic, i386

User Comments:
stefanv: i just started my application with the --laf Nimbus setting



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.core.windows.view.ui.toolbars.ToolbarContainer.getName(ToolbarContainer.java:165)
        at com.sun.java.swing.plaf.nimbus.NimbusDefaults$LazyStyle.matches(NimbusDefaults.java:1460)
        at com.sun.java.swing.plaf.nimbus.NimbusDefaults$LazyStyle.matches(NimbusDefaults.java:1452)
        at com.sun.java.swing.plaf.nimbus.NimbusDefaults.getStyle(NimbusDefaults.java:1140)
        at com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel$.getStyle(NimbusLookAndFeel.java:88)
        at javax.swing.plaf.synth.SynthLookAndFeel.getStyle(SynthLookAndFeel.java:211)
Comment 1 stefanv 2008-11-30 12:54:23 UTC
Created attachment 74311 [details]
stacktrace
Comment 2 Petr Chytil 2008-12-01 07:26:00 UTC
Build: NetBeans IDE Dev (Build 200812010201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-10-generic, i386

User Comments: 
Unable to start IDE with Nimbus L&F.

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.core.windows.view.ui.toolbars.ToolbarContainer.getName(ToolbarContainer.java:165)
        at com.sun.java.swing.plaf.nimbus.NimbusDefaults$LazyStyle.matches(NimbusDefaults.java:1460)
        at com.sun.java.swing.plaf.nimbus.NimbusDefaults$LazyStyle.matches(NimbusDefaults.java:1452)
        at com.sun.java.swing.plaf.nimbus.NimbusDefaults.getStyle(NimbusDefaults.java:1140)
        at com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel$.getStyle(NimbusLookAndFeel.java:88)
        at javax.swing.plaf.synth.SynthLookAndFeel.getStyle(SynthLookAndFeel.java:211)
Comment 3 Petr Chytil 2008-12-01 07:26:12 UTC
Created attachment 74327 [details]
stacktrace
Comment 4 David Simonek 2008-12-01 08:12:53 UTC
*** Issue 154118 has been marked as a duplicate of this issue. ***
Comment 5 Stanislav Aubrecht 2008-12-01 08:16:45 UTC
fixed

23fc2a2c3bd2
Comment 6 Petr Pisl 2008-12-01 11:02:31 UTC
Stando, where is the fix. I have updated trunk and still I can not start the ide due this NPE. Only one difference is
that I use GTK. For the stacktrace see issue #154118 that was marked as duplicate of this issue. 
Comment 7 Stanislav Aubrecht 2008-12-01 11:17:03 UTC
it is fixed, i just didn't push my changes yet (the joy of hg versioning system:)
Comment 8 Jan Pokorsky 2008-12-01 11:26:05 UTC
Please push the change set or attach the diff here at least. It is P1. The main window does not appear at all.
Comment 9 Petr Pisl 2008-12-01 11:38:33 UTC
Please push the changes as soon as possible. It's show stopper to work on the trunk. 
Comment 10 Stanislav Aubrecht 2008-12-01 12:19:38 UTC
http://hg.netbeans.org/core-main/rev/23fc2a2c3bd2

workaround is switching to metal l&f
Comment 11 Stanislav Aubrecht 2008-12-01 17:01:15 UTC
manually merged to main repo: a857560e4f74
Comment 12 Quality Engineering 2008-12-02 05:58:41 UTC
Integrated into 'main-golden', will be available in build *200812020201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/23fc2a2c3bd2
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #154164 - NPE
Comment 13 Petr Chytil 2008-12-03 09:55:07 UTC
verified on both GTK and Nimbus L&F:

Product Version: NetBeans IDE Dev (Build 200812030201)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Linux version 2.6.27-10-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/petr/.netbeans/dev
Comment 14 Stanislav Aubrecht 2013-12-11 14:00:05 UTC
*** Bug 154118 has been marked as a duplicate of this bug. ***