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

Summary: NullPointerException at org.netbeans.modules.editor.settings.storage.spi.support.StorageSupport.humanReadableStringToKeyStroke
Product: editor Reporter: Torbjorn Norbye <tor>
Component: MacrosAssignee: issues@editor <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=150807
Issue Type: DEFECT Exception Reporter: 150807
Attachments: stacktrace

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