Skip to content

Commit

Permalink
make sure null strings don't attempt to log
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Mar 25, 2014
1 parent 1dd2383 commit c09669e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mantle/debug/LogIdentifier.java
Expand Up @@ -35,6 +35,7 @@ public TracingPrintStream(Logger l, String Stream, PrintStream original)
@Override
public void println (String x)
{
x = x != null ? x : "";
StackTraceElement[] stack = Thread.currentThread().getStackTrace();
// stack(2) is calling object.
String name = stack[2].getClassName();
Expand Down

0 comments on commit c09669e

Please sign in to comment.