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 164738 - NullPointerException at org.netbeans.modules.editor.settings.storage.spi.support.StorageSupport.humanReadableStringToKeyStroke
Summary: NullPointerException at org.netbeans.modules.editor.settings.storage.spi.supp...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Macros (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-07 23:54 UTC by Torbjorn Norbye
Modified: 2009-05-13 07:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 150807


Attachments
stacktrace (2.51 KB, text/plain)
2009-05-07 23:54 UTC, Torbjorn Norbye
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2009-05-07 23:54:13 UTC
Build: NetBeans IDE Dev (Build 090507)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-77, Java(TM) SE Runtime Environment, 1.6.0_13-b03-196
OS: Mac OS X, 10.5.6, x86_64

User Comments:
tor: I was trying to create a macro. I had recorded it, named it, and assigned a keystroke. When I tried to -invoke- the macro I got this NPE.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.settings.storage.spi.support.StorageSupport.humanReadableStringToKeyStroke(StorageSupport.java:184)
        at org.netbeans.modules.editor.settings.storage.spi.support.StorageSupport.stringToKeyStrokes(StorageSupport.java:140)
        at org.netbeans.modules.editor.macros.MacroDialogSupport$RunMacroAction.actionPerformed(MacroDialogSupport.java:307)
        at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:325)
        at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1641)
        at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
Comment 1 Torbjorn Norbye 2009-05-07 23:54:19 UTC
Created attachment 81773 [details]
stacktrace
Comment 2 Vitezslav Stejskal 2009-05-11 11:55:25 UTC
Does using a different shortcut make any difference? There was a possible race condition in the code, but could also be
related to a specific shortcut. 

Local changeset: e92296339f29 
Comment 3 Quality Engineering 2009-05-13 07:41:14 UTC
Integrated into 'main-golden', will be available in build *200905130201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e92296339f29
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #164738: synchronizing the 'names' map creation