java.lang.NullPointerException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by scJazz2
, 1 year ago
This exception has no message.
java.lang.NullPointerException:
at megamek.common.pathfinder.ShortestPathFinder.getLevelDiff(ShortestPathFinder.java:397)
at megamek.common.pathfinder.ShortestPathFinder$MovePathAStarComparator.compare(ShortestPathFinder.java:212)
at megamek.common.pathfinder.ShortestPathFinder$MovePathAStarComparator.compare(ShortestPathFinder.java:167)
at java.util.PriorityQueue.siftUpUsingComparator(Unknown Source)
at java.util.PriorityQueue.siftUp(Unknown Source)
at java.util.PriorityQueue.offer(Unknown Source)
at java.util.PriorityQueue.add(Unknown Source)
at java.util.AbstractQueue.addAll(Unknown Source)
at megamek.common.pathfinder.AbstractPathFinder.run(AbstractPathFinder.java:298)
at megamek.common.pathfinder.AbstractPathFinder.run(AbstractPathFinder.java:325)
at megamek.client.bot.BotClient.hasPathToCenter(BotClient.java:778)
at megamek.client.bot.BotClient.getStartingCoordsArray(BotClient.java:724)
at megamek.client.bot.princess.Princess.calculateDeployment(Princess.java:247)
at megamek.client.bot.BotClient.calculateMyTurn(BotClient.java:397)
at megamek.client.bot.BotClient$CalculateBotTurn.run(BotClient.java:99)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.