From 77cc225b830d9e0e57640838972ef851bbf11fd5 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Wed, 6 Jun 2012 12:12:42 -0500 Subject: [PATCH] Don't try to parse directories if we don't have any. --- src/main/java/net/minecraft/server/ConsoleLogManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()) {