Don't try to parse directories if we don't have any.

This commit is contained in:
Travis Watkins 2012-06-06 12:12:42 -05:00
parent 6a37511144
commit 77cc225b83

View File

@ -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()) {