diff options
author | ElgarL <ElgarL@Palmergames.com> | 2014-04-27 23:55:20 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2014-05-04 12:50:21 +0100 |
commit | 211dc220d891f88d5c9e58ae934c55f07092c1fe (patch) | |
tree | b6203d58a4bfaf009775c91fabb6cee2eb4d09df /EssentialsGroupManager/src/org/anjocaido/groupmanager | |
parent | aae586f79ac177734eefac9e786dc5fc50dabb43 (diff) | |
download | Essentials-211dc220d891f88d5c9e58ae934c55f07092c1fe.tar Essentials-211dc220d891f88d5c9e58ae934c55f07092c1fe.tar.gz Essentials-211dc220d891f88d5c9e58ae934c55f07092c1fe.tar.lz Essentials-211dc220d891f88d5c9e58ae934c55f07092c1fe.tar.xz Essentials-211dc220d891f88d5c9e58ae934c55f07092c1fe.zip |
Set a default mirror map if none is found in the config.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java index fbf8109f6..a340482b0 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java @@ -80,7 +80,7 @@ public class GMConfiguration { } /* - * Read our config settings ands store them for reading later. + * Read our config settings and store them for reading later. */ try { Map<String, Object> config = getElement("config", getElement("settings", GMconfig)); @@ -135,6 +135,9 @@ public class GMConfiguration { * Store our mirrors map for parsing later. */ mirrorsMap = (Map<String, Object>) ((Map<String, Object>) GMconfig.get("settings")).get("mirrors"); + + if (mirrorsMap == null) + throw new Exception(); } catch (Exception ex) { /* |