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

#124 ggVG= throws exception

Moderate
closed-fixed
NetBeans (62)
5
2014-08-14
2011-03-01
jeyoung
No

Selecting text then pressing = to reformat causes an exception. See log.

java.lang.NullPointerException
at org.netbeans.modules.java.source.save.Reindenter.reindent(Reindenter.java:169)
at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:546)
at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:316)
at org.netbeans.modules.editor.indent.IndentImpl.reindent(IndentImpl.java:281)
at org.netbeans.modules.editor.indent.api.Indent.reindent(Indent.java:171)
at org.netbeans.modules.jvi.impl.NbBuffer.reindent(NbBuffer.java:160)
at com.raelity.jvi.core.Normal$4.run(Normal.java:1749)
at org.netbeans.modules.jvi.impl.NbBuffer.do_runUndoable(NbBuffer.java:322)
at com.raelity.jvi.core.Misc.runUndoable(Misc.java:3893)
at com.raelity.jvi.core.Normal.do_pending_operator(Normal.java:1746)
at com.raelity.jvi.core.Normal.normal_cmd(Normal.java:1245)
[catch] at com.raelity.jvi.core.Normal.processInputChar(Normal.java:172)
at com.raelity.jvi.core.GetChar.gotc(GetChar.java:82)
at com.raelity.jvi.core.Hook.gotc(Hook.java:87)
at com.raelity.jvi.manager.Scheduler.keyStroke(Scheduler.java:194)
at com.raelity.jvi.swing.SwingFactory$EnqueCharAction.actionPerformed(SwingFactory.java:549)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1633)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2886)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
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:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
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

  • jeyoung

    jeyoung - 2011-03-01
    • summary: gVG= throws exception --> ggVG= throws exception
     
  • jeyoung

    jeyoung - 2011-03-01

    Sorry, forgot to add environment information.

    Win 7
    NetBeans Dev 201102270001
    Latest jVi from Mercurial

     
  • Ernie Rael

    Ernie Rael - 2011-03-02

    Thanks. Fixed in repository.

     
  • Ernie Rael

    Ernie Rael - 2011-03-02
    • assigned_to: nobody --> err
    • status: open --> open-fixed
     
  • Ernie Rael

    Ernie Rael - 2011-04-06

    available in nbvi-1.3.1.beta5

     
  • Ernie Rael

    Ernie Rael - 2011-04-06
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.