Skip to content

Commit

Permalink
Check for a null input
Browse files Browse the repository at this point in the history
Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information
egonw authored and rajarshi committed Dec 26, 2011
1 parent 8524891 commit fb35047
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/org/openscience/cdk/tools/SystemOutLoggingTool.java
Expand Up @@ -108,7 +108,11 @@ public void debug(Object object, Object... objects) {
StringBuilder result = new StringBuilder();
result.append(object.toString());
for (Object obj : objects) {
result.append(obj.toString());
if (obj == null) {
result.append("null");
} else {
result.append(obj.toString());
}
}
debugString(result.toString());
}
Expand Down

0 comments on commit fb35047

Please sign in to comment.