mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-14 10:34:41 +02:00
Fix NPE in update (sorry again :P)
This commit is contained in:
@@ -801,7 +801,12 @@ public class EssentialsUpgrade
|
|||||||
{
|
{
|
||||||
EssentialsConf config = new EssentialsConf(file);
|
EssentialsConf config = new EssentialsConf(file);
|
||||||
config.load();
|
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)
|
for(String s : homes)
|
||||||
{
|
{
|
||||||
if(!s.contains(".") && Util.isInt(s))
|
if(!s.contains(".") && Util.isInt(s))
|
||||||
|
Reference in New Issue
Block a user