From 9deac08466eb1b01e0d5a82c6923705bd1922aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 9 Feb 2016 23:32:57 +0100 Subject: Config: protect load(String) against null payload --- core/src/ch/asynk/rustanddust/game/Config.java | 1 + 1 file changed, 1 insertion(+) 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"); -- cgit v1.1-2-g2b99