Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
fix: prevent npe caused by missing parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerschtli committed Oct 2, 2020
1 parent 9977dd2 commit 9dc1631
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -176,9 +176,10 @@ void handleAttempt(Throwable throwable, ResponseT response) {
Level.FINEST,
"Retrying with:\n{0}\n{1}\n{2}\n{3}",
new Object[] {
"enclosingMethod: " + callable.getClass().getEnclosingMethod() != null
? callable.getClass().getEnclosingMethod().getName()
: "",
"enclosingMethod: "
+ (callable.getClass().getEnclosingMethod() != null
? callable.getClass().getEnclosingMethod().getName()
: ""),
"attemptCount: " + attemptSettings.getAttemptCount(),
"delay: " + attemptSettings.getRetryDelay(),
"retriableException: " + throwable
Expand Down

0 comments on commit 9dc1631

Please sign in to comment.