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 Sep 20, 2011
1 parent 1e07adc commit 5cd07d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/org/openscience/cdk/tools/LoggingTool.java
Expand Up @@ -264,7 +264,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 5cd07d0

Please sign in to comment.