Skip to content

Instantly share code, notes, and snippets.

@christopher-hopper
Created April 12, 2013 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christopher-hopper/5368555 to your computer and use it in GitHub Desktop.
Save christopher-hopper/5368555 to your computer and use it in GitHub Desktop.
JetBrains PhpStorm Exeption in plugin Ini4Idea v 1.0.6
JetBrains PhpStorm Exeption in plugin Ini4Idea
PhpStorm version 6.0
Ini4Idea version 1.0.6
What was I doing when it occurred:
I have configured *.info to be treated as an INI file. I have a file named filename.info open for editing.
I don't know when the exception error message first appeared, but as soon as I noticed it I sent this debug information. As a result, I'm not sure what I was doing when the exception happened.
Exception error message:
Error during dispatching of java.awt.event.KeyEvent[KEY_PRESSED,keyCode=86,keyText=V,keyChar='',modifiers=Ctrl,extModifiers=Ctrl,keyLocation=KEY_LOCATION_STANDARD,rawCode=86,primaryLevelUnicode=118,scancode=47,extendedKeyCode=0x56] on frame0
Exception stack trace:
Error during dispatching of java.awt.event.KeyEvent[KEY_PRESSED,keyCode=86,keyText=V,keyChar='',modifiers=Ctrl,extModifiers=Ctrl,keyLocation=KEY_LOCATION_STANDARD,rawCode=86,primaryLevelUnicode=118,scancode=47,extendedKeyCode=0x56] on frame0
java.lang.NullPointerException
at ini4idea.formatting.IniFileBlock.getSpacing(IniFileBlock.java:46)
at com.intellij.formatting.InitialInfoBuilder.doIteration(InitialInfoBuilder.java:220)
at com.intellij.formatting.InitialInfoBuilder.iteration(InitialInfoBuilder.java:103)
at com.intellij.formatting.FormatProcessor$WrapBlocksState.doIteration(FormatProcessor.java:1302)
at com.intellij.formatting.FormatProcessor$State.iteration(FormatProcessor.java:1235)
at com.intellij.formatting.FormatProcessor.iteration(FormatProcessor.java:244)
at com.intellij.formatting.FormatterImpl.buildProcessorAndWrapBlocks(FormatterImpl.java:418)
at com.intellij.formatting.FormatterImpl.buildProcessorAndWrapBlocks(FormatterImpl.java:392)
at com.intellij.formatting.FormatterImpl.adjustLineIndentsForRange(FormatterImpl.java:287)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl$6.doPerform(CodeStyleManagerImpl.java:360)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerRunnable.perform(CodeStyleManagerRunnable.java:102)
at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.adjustLineIndent(CodeStyleManagerImpl.java:357)
at com.intellij.codeInsight.editorActions.PasteHandler.indentEachLine(PasteHandler.java:365)
at com.intellij.codeInsight.editorActions.PasteHandler.access$000(PasteHandler.java:56)
at com.intellij.codeInsight.editorActions.PasteHandler$4.run(PasteHandler.java:264)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1008)
at com.intellij.codeInsight.editorActions.PasteHandler.doPaste(PasteHandler.java:246)
at com.intellij.codeInsight.editorActions.PasteHandler.execute(PasteHandler.java:115)
at com.intellij.codeInsight.editorActions.PasteHandler.execute(PasteHandler.java:127)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:82)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:93)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:67)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:463)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:479)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment