Menu

#3 null pointer

open
nobody
None
5
2018-01-15
2010-01-19
Anonymous
No

It errors trying to pull up the last problem in the set included in the Java Web Start package.

null
jseki.leitner.QuizEngine.internalGetCard(QuizEngine.java:146)
jseki.leitner.QuizEngine.getCard(QuizEngine.java:141)
jseki.tsumego.model.TsumegoModel.tryTsumego(TsumegoModel.java:34)
jseki.tsumego.gui.TsumegoWindow$1.actionPerformed(TsumegoWindow.java:193)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
java.awt.Component.processMouseEvent(Component.java:6263)
javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
java.awt.Component.processEvent(Component.java:6028)
java.awt.Container.processEvent(Container.java:2041)
java.awt.Component.dispatchEventImpl(Component.java:4630)
java.awt.Container.dispatchEventImpl(Container.java:2099)
java.awt.Component.dispatchEvent(Component.java:4460)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
java.awt.Container.dispatchEventImpl(Container.java:2085)
java.awt.Window.dispatchEventImpl(Window.java:2475)
java.awt.Component.dispatchEvent(Component.java:4460)
java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Then I clicked the answer to the next-to-last problem again and got:

Card [3, 0], DEAD was not retrieved from the getCards() method.
jseki.leitner.QuizEngine.promote(QuizEngine.java:200)
jseki.tsumego.model.TsumegoModel.tryTsumego(TsumegoModel.java:32)
jseki.tsumego.gui.TsumegoWindow$1.actionPerformed(TsumegoWindow.java:193)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
java.awt.Component.processMouseEvent(Component.java:6263)
javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
java.awt.Component.processEvent(Component.java:6028)
java.awt.Container.processEvent(Container.java:2041)
java.awt.Component.dispatchEventImpl(Component.java:4630)
java.awt.Container.dispatchEventImpl(Container.java:2099)
java.awt.Component.dispatchEvent(Component.java:4460)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
java.awt.Container.dispatchEventImpl(Container.java:2085)
java.awt.Window.dispatchEventImpl(Window.java:2475)
java.awt.Component.dispatchEvent(Component.java:4460)
java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Discussion

  • Ruediger Klehn

    Ruediger Klehn - 2017-09-15

    This bug was really nasty. Took some time to get it, together with the side effects. A new version with bug fixes and added features can be found: http://mygogrinder.sourceforge.net/download.html
    I've named it version 0.5.0 .The last-card-problem is gone, the lost-card-problem either, you can reset the settings, if the program doesn't anymore start, and some more bugs are gone. I added also some features, e.g. nice sound for right/wrong, some more categories, problem files, it remembers the last directory, you can switch the look&feel (not important, just playing with the code), and...

    Maybe Ross takes the code on his page?
    Greetings from Luebeck (Germany)! Ruediger

     
  • Ruediger Klehn

    Ruediger Klehn - 2018-01-15

    For the latest version of my fixes see https://sourceforge.net/projects/mygogrinder/files/
    I've uploaded JsekiTsumego 0.5.1-b141.jar
    More problems, nice sound.
    Ruediger from Luebeck

     

Log in to post a comment.