diff --git a/src/main/java/com/gmail/nossr50/config/WorldBlacklist.java b/src/main/java/com/gmail/nossr50/config/WorldBlacklist.java index 35abec3d6..cf930d1e6 100644 --- a/src/main/java/com/gmail/nossr50/config/WorldBlacklist.java +++ b/src/main/java/com/gmail/nossr50/config/WorldBlacklist.java @@ -32,13 +32,15 @@ public class WorldBlacklist { blackListFile.createNewFile(); } catch (IOException e) { e.printStackTrace(); + return; } //Load up the blacklist try (BufferedReader reader = new BufferedReader(new FileReader(blackListFile))) { String currentLine; while((currentLine = reader.readLine()) != null) - blacklist.add(currentLine.toLowerCase()); + if (!currentLine.isEmpty()) + blacklist.add(currentLine.toLowerCase()); } catch (IOException e) { e.printStackTrace();