NPE in PE

PropertiesEditor throws some exceptions at me when I'm working
with some java files. PE 1.9.4 / #3265



Whitespace expected
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:34)
at
com.intellij.psi.impl.source.codeStyle.CodeEditUtil.normalizeSpace(CodeEditU
til.java:145)
at
com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.a(CodeStyleManag
erImpl.java:177)
at
com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.adjustLineIndent
(CodeStyleManagerImpl.java:165)
at
com.intellij.codeInsight.editorActions.EnterHandler$DoEnterAction.run(EnterH
andler.java:110)
at
com.intellij.codeInsight.editorActions.EnterHandler.executeWriteAction(Enter
Handler.java:148)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(Edit
orWriteActionHandler.java:39)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(Applica
tionImpl.java:342)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(Ed
itorWriteActionHandler.java:23)
at
com.intellij.codeInsight.template.impl.TemplateManagerActions$EnterHandler.e
xecuteWriteAction(TemplateManagerActions.java:9)
at
com.propertiesEditor.propedit.autocomplete.action.MyEnterHandler.executeWrit
eAction(MyEnterHandler.java:26)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(Edit
orWriteActionHandler.java:39)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(Applica
tionImpl.java:342)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(Ed
itorWriteActionHandler.java:23)
at
com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.jav
a:40)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(Comman
dProcessorImpl.java:89)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(Comman
dProcessorImpl.java:21)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(Editor
Action.java:46)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(Editor
Action.java:31)
at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatch
er.java:11)
at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatch
er.java:76)
at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeK
eyEventDispatcher.java:16)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:128)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:47)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)



java.lang.NullPointerException
at
com.intellij.psi.impl.source.codeStyle.Helper.isNonSpace(Helper.java:172)
at
com.intellij.psi.impl.source.codeStyle.CodeEditUtil.normalizeSpace(CodeEditU
til.java:124)
at
com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.a(CodeStyleManag
erImpl.java:177)
at
com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.adjustLineIndent
(CodeStyleManagerImpl.java:165)
at
com.intellij.codeInsight.editorActions.EnterHandler$DoEnterAction.run(EnterH
andler.java:110)
at
com.intellij.codeInsight.editorActions.EnterHandler.executeWriteAction(Enter
Handler.java:148)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(Edit
orWriteActionHandler.java:39)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(Applica
tionImpl.java:342)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(Ed
itorWriteActionHandler.java:23)
at
com.intellij.codeInsight.template.impl.TemplateManagerActions$EnterHandler.e
xecuteWriteAction(TemplateManagerActions.java:9)
at
com.propertiesEditor.propedit.autocomplete.action.MyEnterHandler.executeWrit
eAction(MyEnterHandler.java:26)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(Edit
orWriteActionHandler.java:39)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(Applica
tionImpl.java:342)
at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(Ed
itorWriteActionHandler.java:23)
at
com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.jav
a:40)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(Comman
dProcessorImpl.java:89)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(Comman
dProcessorImpl.java:21)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(Editor
Action.java:46)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(Editor
Action.java:31)
at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatch
er.java:11)
at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatch
er.java:76)
at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeK
eyEventDispatcher.java:16)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:128)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:47)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Thanks,

Vince.


1 comment
Comment actions Permalink

I'm sorry :(
I absolutely have no time to make this fix or even test is it PE or IDEA bug :(

TIA,
Dmitry

0

Please sign in to leave a comment.