editorconfig / editorconfig-jetbrains

A JetBrains IDE plugin supporting the EditorConfig standard
MIT License
291 stars 21 forks source link

IntelliJ NullpointerException while setting indent style #23

Closed ghost closed 10 years ago

ghost commented 11 years ago

Hi, I got this error when try to use EditorConfig in IntelliJ 12

Error during dispatching of java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=null,oldState=0,newState=0] on frame2 java.lang.NullPointerException at org.editorconfig.configmanagement.CodeStyleManager.applyIndentSize(CodeStyleManager.java:148) at org.editorconfig.configmanagement.CodeStyleManager.applyIndentOptions(CodeStyleManager.java:117) at org.editorconfig.configmanagement.CodeStyleManager.applyCodeStyleSettings(CodeStyleManager.java:107) at org.editorconfig.configmanagement.CodeStyleManager.applySettings(CodeStyleManager.java:89) at org.editorconfig.configmanagement.CodeStyleManager.windowGainedFocus(CodeStyleManager.java:65) at java.awt.AWTEventMulticaster.windowGainedFocus(AWTEventMulticaster.java:406) at java.awt.Window.processWindowFocusEvent(Window.java:1918) at java.awt.Window.processEvent(Window.java:1833) at java.awt.Component.dispatchEventImpl(Component.java:4776) at java.awt.Container.dispatchEventImpl(Container.java:2141) at java.awt.Window.dispatchEventImpl(Window.java:2489) at java.awt.Component.dispatchEvent(Component.java:4604) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1856) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:920) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:381) at java.awt.Component.dispatchEventImpl(Component.java:4648) at java.awt.Container.dispatchEventImpl(Container.java:2141) at java.awt.Window.dispatchEventImpl(Window.java:2489) at java.awt.Component.dispatchEvent(Component.java:4604) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:676) at java.awt.EventQueue$2.run(EventQueue.java:674) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97) at java.awt.EventQueue$3.run(EventQueue.java:690) at java.awt.EventQueue$3.run(EventQueue.java:688) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.awt.EventQueue.dispatchEvent(EventQueue.java:687) at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:700) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:525) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348) at java.awt.SequencedEvent.dispatch(SequencedEvent.java:101) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715) at java.awt.EventQueue.access$400(EventQueue.java:82) at java.awt.EventQueue$2.run(EventQueue.java:676) at java.awt.EventQueue$2.run(EventQueue.java:674) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97) at java.awt.EventQueue$3.run(EventQueue.java:690) at java.awt.EventQueue$3.run(EventQueue.java:688) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86) at java.awt.EventQueue.dispatchEvent(EventQueue.java:687) at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:700) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:525) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

bellkev commented 10 years ago

I believe this was fixed with v0.2.1. Can you see if you are still having this issue?

ghost commented 10 years ago

Since the new version of IntelliJ it's gone.