Syncedit exception

I just received the following stack trace. I'm running IDEA build #5380 and
SyncEdit 1.1.1. Sorry I can't tell you exactly what I did to cause it - possibly
I had the whole file in SyncEdit mode and I did a Select All and then pasted
in new content? Let me know if you need a way to reproduce and I'll see what
I can do.

Note that this is the first time I've had a problem even though I use SyncEdit
mode quite frequently. Thanks for a great plugin!

No message
java.lang.NullPointerException
at com.anecdote.ideaplugins.util.EditorUtils.findMatchingWordRanges(EditorUtils.java:166)
at com.anecdote.ideaplugins.syncedit.SyncEditModeController.activateSyncEditSelection(SyncEditModeController.java:389)
at com.anecdote.ideaplugins.syncedit.SyncEditModeController.activateSyncEditSelectionForCaretLocation(SyncEditModeController.java:330)
at com.anecdote.ideaplugins.syncedit.SyncEditModeController.beforeActiveEditorDocumentChange(SyncEditModeController.java:321)
at com.anecdote.ideaplugins.syncedit.SyncEditModeController.access$000(SyncEditModeController.java:21)
at com.anecdote.ideaplugins.syncedit.SyncEditModeController$1.beforeDocumentChange(SyncEditModeController.java:40)
at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:85)
at com.intellij.openapi.editor.impl.DocumentImpl.access$200(DocumentImpl.java:103)
at com.intellij.openapi.editor.impl.DocumentImpl$4.beforeChangedUpdate(DocumentImpl.java:3)
at com.intellij.openapi.editor.impl.CharArray.insert(CharArray.java:18)
at com.intellij.openapi.editor.impl.DocumentImpl.insertString(DocumentImpl.java:37)
at com.intellij.openapi.editor.EditorModificationUtil.insertStringAtCaret(EditorModificationUtil.java:84)
at com.intellij.codeInsight.editorActions.PasteHandler$2.run(PasteHandler.java:2)
at com.intellij.openapi.application.impl.ApplicationImpl$9.compute(ApplicationImpl.java:2)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:129)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:436)
at com.intellij.codeInsight.editorActions.PasteHandler.a(PasteHandler.java:80)
at com.intellij.codeInsight.editorActions.PasteHandler.execute(PasteHandler.java:299)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:52)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:41)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:37)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:58)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:43)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:137)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:79)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:147)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:158)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:142)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)


1 comment
Comment actions Permalink

Thanks for the feedback, I haven't had any comments on it for a while,
but then they say no news is good news!

I'll take a look at fixing this soon.

Cheers,
N.

Chris Miller wrote:

I just received the following stack trace. I'm running IDEA build #5380
and SyncEdit 1.1.1. Sorry I can't tell you exactly what I did to cause
it - possibly I had the whole file in SyncEdit mode and I did a Select
All and then pasted in new content? Let me know if you need a way to
reproduce and I'll see what I can do.

Note that this is the first time I've had a problem even though I use
SyncEdit mode quite frequently. Thanks for a great plugin!

No message
java.lang.NullPointerException
at
com.anecdote.ideaplugins.util.EditorUtils.findMatchingWordRanges(EditorUtils.java:166)

at
com.anecdote.ideaplugins.syncedit.SyncEditModeController.activateSyncEditSelection(SyncEditModeController.java:389)

at
com.anecdote.ideaplugins.syncedit.SyncEditModeController.activateSyncEditSelectionForCaretLocation(SyncEditModeController.java:330)

at
com.anecdote.ideaplugins.syncedit.SyncEditModeController.beforeActiveEditorDocumentChange(SyncEditModeController.java:321)

at
com.anecdote.ideaplugins.syncedit.SyncEditModeController.access$000(SyncEditModeController.java:21)

at
com.anecdote.ideaplugins.syncedit.SyncEditModeController$1.beforeDocumentChange(SyncEditModeController.java:40)

at
com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:85)
at
com.intellij.openapi.editor.impl.DocumentImpl.access$200(DocumentImpl.java:103)

at
com.intellij.openapi.editor.impl.DocumentImpl$4.beforeChangedUpdate(DocumentImpl.java:3)

at com.intellij.openapi.editor.impl.CharArray.insert(CharArray.java:18)
at
com.intellij.openapi.editor.impl.DocumentImpl.insertString(DocumentImpl.java:37)

at
com.intellij.openapi.editor.EditorModificationUtil.insertStringAtCaret(EditorModificationUtil.java:84)

at
com.intellij.codeInsight.editorActions.PasteHandler$2.run(PasteHandler.java:2)

at
com.intellij.openapi.application.impl.ApplicationImpl$9.compute(ApplicationImpl.java:2)

at
com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:129)

at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:436)

at
com.intellij.codeInsight.editorActions.PasteHandler.a(PasteHandler.java:80)
at
com.intellij.codeInsight.editorActions.PasteHandler.execute(PasteHandler.java:299)

at
com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:52)

at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:41)

at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:37)

at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:58)

at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:43)

at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:137)

at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:79)

at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:147)

at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:158)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:142)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

0

Please sign in to leave a comment.