diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-06-06 12:12:42 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-06-06 12:12:42 -0500 |
commit | 77cc225b830d9e0e57640838972ef851bbf11fd5 (patch) | |
tree | 2bc4414b7c0e90c2899507f7b45e7e88652de915 /src/main/java/net/minecraft/server/ConsoleLogManager.java | |
parent | 6a3751114450aab552ff74c8f396b5dbf25a2be2 (diff) | |
download | craftbukkit-77cc225b830d9e0e57640838972ef851bbf11fd5.tar craftbukkit-77cc225b830d9e0e57640838972ef851bbf11fd5.tar.gz craftbukkit-77cc225b830d9e0e57640838972ef851bbf11fd5.tar.lz craftbukkit-77cc225b830d9e0e57640838972ef851bbf11fd5.tar.xz craftbukkit-77cc225b830d9e0e57640838972ef851bbf11fd5.zip |
Don't try to parse directories if we don't have any.
Diffstat (limited to 'src/main/java/net/minecraft/server/ConsoleLogManager.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ConsoleLogManager.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ConsoleLogManager.java b/src/main/java/net/minecraft/server/ConsoleLogManager.java index 9990cce1..1e4af5e5 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()) { |