Skip to content

Commit

Permalink
Merge pull request #9 from almozavr/patch-1
Browse files Browse the repository at this point in the history
Fix DebugNotification#toString if throwable null
  • Loading branch information
abersnaze committed Oct 25, 2015
2 parents 832ca86 + 4b74ddb commit 4bb9b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/rx/plugins/DebugNotification.java
Expand Up @@ -150,7 +150,7 @@ public String toString() {
if (kind == Kind.OnNext)
s.append(", \"value\": ").append(quote(value));
if (kind == Kind.OnError)
s.append(", \"exception\": \"").append(throwable.getMessage().replace("\\", "\\\\").replace("\"", "\\\"")).append("\"");
s.append(", \"exception\": \"").append(throwable.getMessage() == null ? throwable.getClass().getSimpleName() : throwable.getMessage().replace("\\", "\\\\").replace("\"", "\\\"")).append("\"");
if (kind == Kind.Request)
s.append(", \"n\": ").append(n);
if (source != null)
Expand Down

0 comments on commit 4bb9b0b

Please sign in to comment.