Skip to content

Commit

Permalink
handle null throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradellis committed Sep 29, 2022
1 parent 3a59213 commit 315a0d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public NewRelicApiImplementation() {
*/
@Override
public void noticeError(Throwable throwable, Map<String, ?> params) {
noticeError(throwable, params, isExpectedErrorConfigured(throwable.getClass().getName(), throwable.getMessage()));
noticeError(throwable, params, throwable != null && isExpectedErrorConfigured(throwable.getClass().getName(), throwable.getMessage()));
}

/**
Expand Down

0 comments on commit 315a0d2

Please sign in to comment.