Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null pointer on exploring pirate lair #765

Open
tuomount opened this issue Dec 8, 2024 · 0 comments
Open

Null pointer on exploring pirate lair #765

tuomount opened this issue Dec 8, 2024 · 0 comments
Labels
bug Verified bug which needs fixing Wait for verify Issue has been implemented but needs verification that it works.
Milestone

Comments

@tuomount
Copy link
Owner

tuomount commented Dec 8, 2024

It is possible to get null pointer when exploring pirate lair:

testRunFullGames(org.openRealmOfStars.game.GameTest) Time elapsed: 4.403 sec <<< ERROR!
java.lang.NullPointerException
at org.openRealmOfStars.player.combat.Combat.(Combat.java:265)
at org.openRealmOfStars.player.combat.Combat.(Combat.java:245)
at org.openRealmOfStars.mapTiles.anomaly.SpaceAnomaly.createAnomalyEvent(SpaceAnomaly.java:353)
at org.openRealmOfStars.game.Game.fleetMakeMove(Game.java:910)
at org.openRealmOfStars.ai.mission.MissionHandling.moveFleetRegular(MissionHandling.java:2411)
at org.openRealmOfStars.ai.mission.MissionHandling.makeRegularMoves(MissionHandling.java:2529)
at org.openRealmOfStars.ai.mission.MissionHandling.handleExploring(MissionHandling.java:673)
at org.openRealmOfStars.game.state.AITurnView.handleMissions(AITurnView.java:323)
at org.openRealmOfStars.game.state.AITurnView.handleAIFleet(AITurnView.java:1669)
at org.openRealmOfStars.game.state.AITurnView.handleAiTurn(AITurnView.java:3762)
at org.openRealmOfStars.game.GameTest.testRunFullGames(GameTest.java:438)

@tuomount tuomount added the bug Verified bug which needs fixing label Dec 8, 2024
@tuomount tuomount added this to the 0.27.0 milestone Dec 8, 2024
@tuomount tuomount added the Wait for verify Issue has been implemented but needs verification that it works. label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified bug which needs fixing Wait for verify Issue has been implemented but needs verification that it works.
Projects
None yet
Development

No branches or pull requests

1 participant