Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

#109 Nullpointer exception

closed-fixed
nobody
None
5
2010-01-03
2010-01-03
Kees Kuip
No

-----------------------------------------------------
jVi Version Information
Running: jVi 1.2.7.x10 (development release)

I got this nullpointer exception while executing the command "8ia" (insert eigth 'a')

java.lang.NullPointerException
at com.raelity.jvi.swing.DefaultBuffer$Mark.setMark(DefaultBuffer.java:325)
at com.raelity.jvi.Edit.stop_insert(Edit.java:1212)
at com.raelity.jvi.Edit.ins_esc(Edit.java:1727)
at com.raelity.jvi.Edit.edit(Edit.java:562)
at com.raelity.jvi.Normal.processInputChar(Normal.java:139)
at com.raelity.jvi.GetChar.pumpChar(GetChar.java:171)
at com.raelity.jvi.GetChar.pumpVi(GetChar.java:139)
at com.raelity.jvi.GetChar.access$000(GetChar.java:30)
at com.raelity.jvi.GetChar$1.run(GetChar.java:95)
at org.netbeans.modules.jvi.NbBuffer.do_runUndoable(NbBuffer.java:323)
at com.raelity.jvi.Misc.runUndoable(Misc.java:4580)
at com.raelity.jvi.GetChar.gotc(GetChar.java:93)
at com.raelity.jvi.ViManager.keyStroke(ViManager.java:736)
at com.raelity.jvi.swing.DefaultViFactory$EnqueCharAction.actionPerformed(DefaultViFactory.java:565)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1633)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2839)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2874)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2802)
at java.awt.Component.processEvent(Component.java:6040)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
at java.awt.Component.dispatchEventImpl(Component.java:4502)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:125)
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)

Discussion

  • Ernie Rael

    Ernie Rael - 2010-01-03
    • status: open --> closed-fixed
     
  • Ernie Rael

    Ernie Rael - 2010-01-03

    Good catch. Simple fix, delete one line. Don't null Insstart when repeating insert.

    Introduced by first fix for "#2922313 exception: didDocRemoveAfterTrackPosition"

     
  • Ernie Rael

    Ernie Rael - 2010-01-03

    BTW, forgot to mention that Insstart is part of the `[ and `] mark handling.

     

Log in to post a comment.