java.lang.NullPointerException

GitHub | LevelX2 | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at mage.view.CardView.<init>()
    2. mage.view
      GameView.<init>
      1. mage.view.CardView.<init>(CardView.java:168)
      2. mage.view.CardView.<init>(CardView.java:153)
      3. mage.view.CardView.<init>(CardView.java:131)
      4. mage.view.PlayerView.<init>(PlayerView.java:128)
      5. mage.view.GameView.<init>(GameView.java:95)
      5 frames
    3. mage.server.game
      GameController$2.event
      1. mage.server.game.GameSessionPlayer.getGameView(GameSessionPlayer.java:239)
      2. mage.server.game.GameSessionPlayer.select(GameSessionPlayer.java:103)
      3. mage.server.game.GameController$18.execute(GameController.java:868)
      4. mage.server.game.GameController.perform(GameController.java:1019)
      5. mage.server.game.GameController.perform(GameController.java:1012)
      6. mage.server.game.GameController.select(GameController.java:865)
      7. mage.server.game.GameController.access$1100(GameController.java:97)
      8. mage.server.game.GameController$2.event(GameController.java:240)
      9. mage.server.game.GameController$2.event(GameController.java:224)
      9 frames
    4. mage.game.events
      PlayerQueryEventSource.select
      1. mage.game.events.EventDispatcher.fireEvent(EventDispatcher.java:56)
      2. mage.game.events.PlayerQueryEventSource.select(PlayerQueryEventSource.java:67)
      2 frames
    5. mage.game
      GameImpl.firePriorityEvent
      1. mage.game.GameImpl.firePriorityEvent(GameImpl.java:1990)
      1 frame
    6. mage.player.human
      HumanPlayer.priority
      1. mage.player.human.HumanPlayer.priority(HumanPlayer.java:679)
      1 frame
    7. mage.game
      GameImpl.playPriority
      1. mage.game.GameImpl.playPriority(GameImpl.java:1298)
      1 frame
    8. mage.game.turn
      Turn.play
      1. mage.game.turn.Step.priority(Step.java:87)
      2. mage.game.turn.Phase.playStep(Phase.java:210)
      3. mage.game.turn.Phase.play(Phase.java:115)
      4. mage.game.turn.Turn.play(Turn.java:152)
      4 frames
    9. mage.game
      GameImpl.start
      1. mage.game.GameImpl.playTurn(GameImpl.java:852)
      2. mage.game.GameImpl.play(GameImpl.java:766)
      3. mage.game.GameImpl.start(GameImpl.java:733)
      3 frames
    10. mage.server.game
      GameWorker.call
      1. mage.server.game.GameWorker.call(GameWorker.java:60)
      1 frame
    11. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames