Skip to content

Commit

Permalink
Fix NPE in RepeatTemplate
Browse files Browse the repository at this point in the history
Resolves #1123
  • Loading branch information
fmbenhassine committed Nov 20, 2023
1 parent dcd1ac8 commit 03d2833
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,15 @@ private void doHandle(Throwable throwable, RepeatContext context, Collection<Thr
}

if (logger.isDebugEnabled()) {
logger.debug("Handling exception: " + throwable.getClass().getName() + ", caused by: "
+ unwrappedThrowable.getClass().getName() + ": " + unwrappedThrowable.getMessage());
StringBuilder message = new StringBuilder("Handling exception: ")
.append(throwable.getClass().getName());
if (unwrappedThrowable != null) {
message.append(", caused by: ")
.append(unwrappedThrowable.getClass().getName())
.append(": ")
.append(unwrappedThrowable.getMessage());
}
logger.debug(message.toString());
}
exceptionHandler.handleException(context, unwrappedThrowable);

Expand Down

0 comments on commit 03d2833

Please sign in to comment.