multitoys / css-x-fire

Automatically exported from code.google.com/p/css-x-fire
0 stars 0 forks source link

Hotkey error on Apply all changes #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Assign a hotkey in the IDE settings to the Apply all changes button
2.
3.

What is the expected output? What do you see instead?
My CSS changes are supposed to be applied on pressing the hotkey. Instead 
WebStorm 2.1 reports an error.

What version of the product are you using? On what operating system?
1.18 on Win7 x64

Please provide any additional information below.

Exception in CSS-X-Fire:

Error during dispatching of 
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=121,keyText=F10,keyChar=Undefined 
keyChar,keyLocation=KEY_LOCATION_STANDARD,rawCode=121,primaryLevelUnicode=0,scan
code=68] on frame0
java.lang.NullPointerException
    at com.googlecode.cssxfire.ui.CssToolWindow.applySelectedNode(CssToolWindow.java:276)
    at com.googlecode.cssxfire.action.ApplyNode.actionPerformed(ApplyNode.java:36)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:524)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:564)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:444)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:197)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:500)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:410)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by webs...@gmail.com on 6 Jun 2011 at 7:31

GoogleCodeExporter commented 8 years ago
Thanks for the report.

The error is fixed in next release (1.19).

I also added proper actions for the two buttons ("Apply all changes" and "Clear 
list") which are probably the actions you want for hotkey binding.

Original comment by ronnie.k...@gmail.com on 19 Jun 2011 at 9:31