java.lang.NullPointerException

GitHub | Question2 | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded 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:397)
    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:778)
    2. megamek.client.bot.BotClient.getStartingCoordsArray(BotClient.java:724)
    3. megamek.client.bot.princess.Princess.calculateDeployment(Princess.java:247)
    4. megamek.client.bot.BotClient.calculateMyTurn(BotClient.java:397)
    5. megamek.client.bot.BotClient$CalculateBotTurn.run(BotClient.java:99)
    5 frames