Skip to content

SaveGame Crash #324

@GAIGResearch

Description

@GAIGResearch

Game seed: 1590509127497
Agents random seed: 1591198831319
Level seed: 1588896458301

Exception in thread "main" java.lang.NullPointerException
at core.game.GameSaver.writeTurnFile(GameSaver.java:112)
at core.game.Game.tick(Game.java:249)
at core.game.Game.run(Game.java:224)
at Run.runGame(Run.java:37)
at Play.run(Play.java:166)
at Play.main(Play.java:99)

The line is: uInfo.put("baseLandType", ((Boat)u).getBaseLandUnit().getKey());
It's likely to be a bug elsewhere in the code, but it's worth making this robust so it doesn't crash in case one of these components is null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions