Skip to content

Commit b3bf36d

Browse files
committed
fix NPE when exception message is null
1 parent 322ce1c commit b3bf36d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/zipkin2/reporter/internal/AsyncReporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ void flush(BufferNextMessage<S> bundler) {
291291

292292
// Old senders in other artifacts may be using this less precise way of indicating they've been closed
293293
// out-of-band.
294-
if (t instanceof IllegalStateException && t.getMessage().equals("closed")) {
294+
if (t instanceof IllegalStateException && "closed".equals(t.getMessage())) {
295295
throw (IllegalStateException) t;
296296
}
297297
}

0 commit comments

Comments
 (0)