mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-09 20:41:23 +01:00
Fix NPE in update (sorry again :P)
This commit is contained in:
parent
79a44b919c
commit
d01d6bcd1b
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user