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 159264 - NullPointerException at org.netbeans.modules.editor.MainMenuAction$ShowToolBarAction.setMenu
Summary: NullPointerException at org.netbeans.modules.editor.MainMenuAction$ShowToolBa...
Status: RESOLVED DUPLICATE of bug 162566
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL: http://statistics.netbeans.org/except...
Keywords:
: 161937 162443 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-26 22:50 UTC by rmorriso
Modified: 2009-04-20 14:55 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 146470


Attachments
stacktrace (1.48 KB, text/plain)
2009-02-26 22:50 UTC, rmorriso
Details
The original exception (3.92 KB, text/plain)
2009-04-20 13:19 UTC, Vitezslav Stejskal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rmorriso 2009-02-26 22:50:14 UTC
Build: NetBeans IDE Dev (Build 200902231810)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP, 5.1, x86

User Comments:
rmorriso: Staring Netbeans 6.7 M2 for the first time after installing. Note that I imported settings from my 6.5 install.

GUEST: Starting NetBeans



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.MainMenuAction$ShowToolBarAction.setMenu(MainMenuAction.java:273)
        at org.netbeans.modules.editor.MainMenuAction$ShowToolBarAction.getMenuPresenter(MainMenuAction.java:280)
        at org.openide.awt.DynaMenuModel.loadSubmenu(DynaMenuModel.java:91)
        at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:673)
        at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:771)
        at org.openide.loaders.FolderInstance.access$100(FolderInstance.java:98)
Comment 1 rmorriso 2009-02-26 22:50:22 UTC
Created attachment 77434 [details]
stacktrace
Comment 2 Vitezslav Stejskal 2009-03-23 12:47:13 UTC
Strange, looks like there was no Preferences instance in MimeLookup.
Comment 3 Vitezslav Stejskal 2009-03-24 17:49:53 UTC
Also see #161042.
Comment 4 Vitezslav Stejskal 2009-04-06 13:04:25 UTC
*** Issue 161937 has been marked as a duplicate of this issue. ***
Comment 5 Vitezslav Stejskal 2009-04-20 13:19:04 UTC
The root cause is:

java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841)
	at java.util.HashMap$EntryIterator.next(HashMap.java:883)
	at java.util.HashMap$EntryIterator.next(HashMap.java:881)
	at org.netbeans.core.startup.NbInstaller.shouldDelegateClasspathResource(NbInstaller.java:829)

I'm going to attach the whole stacktrace from messages.log.
Comment 6 Vitezslav Stejskal 2009-04-20 13:19:55 UTC
Created attachment 80515 [details]
The original exception
Comment 7 Vitezslav Stejskal 2009-04-20 13:25:45 UTC
*** Issue 162443 has been marked as a duplicate of this issue. ***
Comment 8 Jesse Glick 2009-04-20 14:55:47 UTC

*** This issue has been marked as a duplicate of 162566 ***