mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Fix NPE in update (sorry again :P)
This commit is contained in:
parent
79a44b919c
commit
d01d6bcd1b
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue