From d54e47d8ea05568650285666e9758e247c65d674 Mon Sep 17 00:00:00 2001 From: cnr Date: Thu, 14 Jul 2016 11:22:10 -0500 Subject: [PATCH] Check for uptimes field --- .../src/mineplex/serverdata/data/ServerGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.ServerData/src/mineplex/serverdata/data/ServerGroup.java b/Plugins/Mineplex.ServerData/src/mineplex/serverdata/data/ServerGroup.java index eb5541a00..ba3295037 100644 --- a/Plugins/Mineplex.ServerData/src/mineplex/serverdata/data/ServerGroup.java +++ b/Plugins/Mineplex.ServerData/src/mineplex/serverdata/data/ServerGroup.java @@ -80,7 +80,7 @@ public class ServerGroup _requiredTotalServers = Integer.valueOf(data.get("totalServers")); _requiredJoinableServers = Integer.valueOf(data.get("joinableServers")); _portSection = Integer.valueOf(data.get("portSection")); - _uptimes = data.get("uptimes"); + _uptimes = data.containsKey("uptimes") ? data.get("uptimes") : ""; _arcadeGroup = Boolean.valueOf(data.get("arcadeGroup")); _worldZip = data.get("worldZip"); _plugin = data.get("plugin");