View Single Post
  #45    
Old March 14th, 2013 (12:59 AM). Edited March 14th, 2013 by NARFNra.
NARFNra NARFNra is offline
 
Join Date: Jan 2009
Gender:
Posts: 9
Hello, I've been having an issue where the program will load a file but refuses to execute changes. If I only change one thing or just load and then save the program without changing anything, it seems to work, but if I change more than a little it screws up. It's kind of weird, since I've been running this program several times recently and it's only stopped working now.

I tried running it in terminal to see if it came up with an error message, and indeed it did.

Code:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.dabomstew.pkrandom.romhandlers.AbstractRomHandler.pickReplacement(AbstractRomHandler.java:1636)
    at com.dabomstew.pkrandom.romhandlers.AbstractRomHandler.typeThemeTrainerPokes(AbstractRomHandler.java:734)
    at com.dabomstew.pkrandom.gui.RandomizerGUI.performRandomization(RandomizerGUI.java:3205)
    at com.dabomstew.pkrandom.gui.RandomizerGUI.saveROM(RandomizerGUI.java:2620)
    at com.dabomstew.pkrandom.gui.RandomizerGUI.saveROMButtonActionPerformed(RandomizerGUI.java:3675)
    at com.dabomstew.pkrandom.gui.RandomizerGUI.access$14(RandomizerGUI.java:3674)
    at com.dabomstew.pkrandom.gui.RandomizerGUI$15.actionPerformed(RandomizerGUI.java:1894)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)
    at java.awt.Component.processMouseEvent(Component.java:6108)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:5873)
    at java.awt.Container.processEvent(Container.java:2105)
    at java.awt.Component.dispatchEventImpl(Component.java:4469)
    at java.awt.Container.dispatchEventImpl(Container.java:2163)
    at java.awt.Component.dispatchEvent(Component.java:4295)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
    at java.awt.Container.dispatchEventImpl(Container.java:2149)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4295)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Does this make sense to you?

EDIT: Weirdly enough, it seems to work if I do it piece by piece. I don't understand what's happening.
Reply With Quote