java.lang.NullPointerException

GitHub | scJazz2 | 1 year 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.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at megamek.common.pathfinder.ShortestPathFinder.getLevelDiff()
  2. megamek.common.pathfinder
    ShortestPathFinder$MovePathAStarComparator.compare
    1. megamek.common.pathfinder.ShortestPathFinder.getLevelDiff(ShortestPathFinder.java:392)
    2. megamek.common.pathfinder.ShortestPathFinder$MovePathAStarComparator.compare(ShortestPathFinder.java:212)
    3. megamek.common.pathfinder.ShortestPathFinder$MovePathAStarComparator.compare(ShortestPathFinder.java:167)
    3 frames
  3. Java RT
    AbstractQueue.addAll
    1. java.util.PriorityQueue.siftUpUsingComparator(Unknown Source)
    2. java.util.PriorityQueue.siftUp(Unknown Source)
    3. java.util.PriorityQueue.offer(Unknown Source)
    4. java.util.PriorityQueue.add(Unknown Source)
    5. java.util.AbstractQueue.addAll(Unknown Source)
    5 frames
  4. megamek.common.pathfinder
    AbstractPathFinder.run
    1. megamek.common.pathfinder.AbstractPathFinder.run(AbstractPathFinder.java:298)
    2. megamek.common.pathfinder.AbstractPathFinder.run(AbstractPathFinder.java:325)
    2 frames
  5. megamek.client.bot
    BotClient$CalculateBotTurn.run
    1. megamek.client.bot.BotClient.hasPathToCenter(BotClient.java:820)
    2. megamek.client.bot.BotClient.getStartingCoordsArray(BotClient.java:766)
    3. megamek.client.bot.princess.Princess.calculateDeployment(Princess.java:247)
    4. megamek.client.bot.BotClient.calculateMyTurn(BotClient.java:398)
    5. megamek.client.bot.BotClient$CalculateBotTurn.run(BotClient.java:100)
    5 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame