summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Config.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Config.java b/core/src/ch/asynk/rustanddust/game/Config.java
index fccd142..9fd3a43 100644
--- a/core/src/ch/asynk/rustanddust/game/Config.java
+++ b/core/src/ch/asynk/rustanddust/game/Config.java
@@ -116,6 +116,7 @@ public class Config
public void load(String payload)
{
+ if (payload == null) return;
JsonValue root = new JsonReader().parse(payload);
this.gameMode = GameMode.valueOf(root.getString("mode"));
this.debug = root.getBoolean("debug");