1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 09:35:26 +02:00

Fix NPE in update (sorry again :P)

This commit is contained in:
Chris Ward
2012-12-20 15:45:09 +11:00
parent ebebb61989
commit 7919065be3

View File

@@ -801,7 +801,12 @@ public class EssentialsUpgrade
{
EssentialsConf config = new EssentialsConf(file);
config.load();
Set<String> homes = config.getConfigurationSection("homes").getKeys(true);
ConfigurationSection homesSection = config.getConfigurationSection("homes");
if(homesSection == null)
{
continue;
}
Set<String> homes = homesSection.getKeys(true);
for(String s : homes)
{
if(!s.contains(".") && Util.isInt(s))