diff --git a/src/main/java/net/minecraft/server/ConsoleLogManager.java b/src/main/java/net/minecraft/server/ConsoleLogManager.java index 9990cce1b6..1e4af5e5a6 100644 --- a/src/main/java/net/minecraft/server/ConsoleLogManager.java +++ b/src/main/java/net/minecraft/server/ConsoleLogManager.java @@ -51,8 +51,11 @@ public class ConsoleLogManager { // We only care about parsing for directories, FileHandler can do file names by itself File parent = new File(pattern).getParentFile(); - String parentPath = parent.getPath(); StringBuilder fixedPattern = new StringBuilder(); + String parentPath = ""; + if (parent != null) { + parentPath = parent.getPath(); + } int i = 0; while (i < parentPath.length()) {