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 230349 - NullPointerException at org.netbeans.editor.BaseKit$KeybindingsAndPreferencesTracker.refreshShortcutsAndActions
Summary: NullPointerException at org.netbeans.editor.BaseKit$KeybindingsAndPreferences...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-27 21:37 UTC by markiewb
Modified: 2013-05-30 01:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 158475


Attachments
stacktrace (3.09 KB, text/plain)
2013-05-27 21:37 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-05-27 21:37:30 UTC
Build: NetBeans IDE Dev (Build 201305262300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
markiewb: Pressed "apply" several times when within keymap options

GUEST: Closing the options window

GUEST: Tools->options->Fonts & Color -> Java -> Comment(Monaco)

GUEST: ?????????? ????????




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.editor.BaseKit$KeybindingsAndPreferencesTracker.refreshShortcutsAndActions(BaseKit.java:3191)
   at org.netbeans.editor.BaseKit$KeybindingsAndPreferencesTracker.resultChanged(BaseKit.java:3148)
   at sun.reflect.GeneratedMethodAccessor38.invoke(GeneratedMethodAccessor38.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:458)
Comment 1 markiewb 2013-05-27 21:37:32 UTC
Created attachment 134982 [details]
stacktrace
Comment 2 Svata Dedic 2013-05-28 11:23:29 UTC
Aha, it COULD be so that some stale entries expire between size() and toArray() calls on the WeakSet, although extremely unlikely.
Comment 3 Svata Dedic 2013-05-28 11:58:26 UTC
Fixed in http://hg.netbeans.org/jet-main/rev/a1122477ed83
Comment 4 Quality Engineering 2013-05-30 01:37:51 UTC
Integrated into 'main-golden', will be available in build *201305292301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a1122477ed83
User: Svata Dedic <sdedic@netbeans.org>
Log: #230349: check for nulls from GCed JComponents