java.lang.NullPointerException

freecol | danai | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Stuck with recruitUnitInEurope

    freecol | 10 years ago | danai
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at net.sf.freecol.client.control.InGameController.trainUnitInEurope()
    2. net.sf.freecol
      PurchaseDialog.actionPerformed
      1. net.sf.freecol.client.control.InGameController.trainUnitInEurope(InGameController.java:2751)
      2. net.sf.freecol.client.control.InGameController.purchaseUnitFromEurope(InGameController.java:3015)
      3. net.sf.freecol.client.gui.panel.PurchaseDialog.actionPerformed(PurchaseDialog.java:232)
      3 frames
    3. Java RT
      Component.dispatchEvent
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      6. java.awt.Component.processMouseEvent(Component.java:6038)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
      8. java.awt.Component.processEvent(Component.java:5803)
      9. java.awt.Container.processEvent(Container.java:2058)
      10. java.awt.Component.dispatchEventImpl(Component.java:4410)
      11. java.awt.Container.dispatchEventImpl(Container.java:2116)
      12. java.awt.Component.dispatchEvent(Component.java:4240)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
      16. java.awt.Container.dispatchEventImpl(Container.java:2102)
      17. java.awt.Window.dispatchEventImpl(Window.java:2429)
      18. java.awt.Component.dispatchEvent(Component.java:4240)
      18 frames
    4. net.sf.freecol
      EuropePanel.actionPerformed
      1. net.sf.freecol.client.gui.panel.FreeColDialog.getResponse(FreeColDialog.java:142)
      2. net.sf.freecol.client.gui.panel.FreeColDialog.getResponseInt(FreeColDialog.java:182)
      3. net.sf.freecol.client.gui.Canvas.showPurchaseDialog(Canvas.java:1567)
      4. net.sf.freecol.client.gui.panel.EuropePanel.actionPerformed(EuropePanel.java:630)
      4 frames
    5. Java RT
      Component.dispatchEvent
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      6. java.awt.Component.processMouseEvent(Component.java:6038)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
      8. java.awt.Component.processEvent(Component.java:5803)
      9. java.awt.Container.processEvent(Container.java:2058)
      10. java.awt.Component.dispatchEventImpl(Component.java:4410)
      11. java.awt.Container.dispatchEventImpl(Container.java:2116)
      12. java.awt.Component.dispatchEvent(Component.java:4240)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
      16. java.awt.Container.dispatchEventImpl(Container.java:2102)
      17. java.awt.Window.dispatchEventImpl(Window.java:2429)
      18. java.awt.Component.dispatchEvent(Component.java:4240)
      18 frames
    6. net.sf.freecol
      ConnectController$1$1.run
      1. net.sf.freecol.client.gui.panel.FreeColDialog.getResponse(FreeColDialog.java:142)
      2. net.sf.freecol.client.gui.Canvas.errorMessage(Canvas.java:2195)
      3. net.sf.freecol.client.control.ConnectController.login(ConnectController.java:266)
      4. net.sf.freecol.client.control.ConnectController.access$100(ConnectController.java:46)
      5. net.sf.freecol.client.control.ConnectController$1$1.run(ConnectController.java:397)
      5 frames
    7. Java RT
      EventDispatchThread.run
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      2. java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
      3. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
      4. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
      5. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
      6. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
      7. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
      8. java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
      8 frames