From 094d08218cfa4597d04928b6f2e6698890128ab6 Mon Sep 17 00:00:00 2001 From: Brianna O'Keefe Date: Sat, 2 Feb 2019 12:10:16 -0500 Subject: [PATCH] Fix for startup error. --- src/main/java/me/goodandevil/skyblock/SkyBlock.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/me/goodandevil/skyblock/SkyBlock.java b/src/main/java/me/goodandevil/skyblock/SkyBlock.java index 113a4cb4..6dfeac43 100644 --- a/src/main/java/me/goodandevil/skyblock/SkyBlock.java +++ b/src/main/java/me/goodandevil/skyblock/SkyBlock.java @@ -229,6 +229,7 @@ public class SkyBlock extends JavaPlugin { //Load Stackables String path = getDataFolder().toString() + "/island-data"; File[] files = new File(path).listFiles(); + if (files == null) return; for (File file : files) { File configFile = new File(path); FileManager.Config config = fileManager.getConfig(new File(configFile, file.getName()));