Skip to content

Commit

Permalink
Fixing NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Apr 5, 2019
1 parent 2c01162 commit 019716a
Showing 1 changed file with 8 additions and 3 deletions.
Expand Up @@ -451,9 +451,14 @@ public static void display(String message, ObjectType o) {
}

public static void display(String message, Collection collection) {
String dump = DebugUtil.dump(collection);
System.out.println(OBJECT_TITLE_OUT_PREFIX + message + " (" + collection.size() + ")\n" + dump);
LOGGER.debug(OBJECT_TITLE_LOG_PREFIX + message + " (" + collection.size() + ")\n" + dump);
String dump;
if (collection == null) {
dump = ": null";
} else {
dump = " (" + collection.size() + ")\n" + DebugUtil.dump(collection);
}
System.out.println(OBJECT_TITLE_OUT_PREFIX + message + dump);
LOGGER.debug(OBJECT_TITLE_LOG_PREFIX + message + dump);
}

public static void display(String title, Entry entry) {
Expand Down

0 comments on commit 019716a

Please sign in to comment.