Skip to content

Commit

Permalink
Fix potential NPE in the ExpressionRetryPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
aozeyu authored May 10, 2024
1 parent f94bfff commit 1c53950
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public boolean canRetry(RetryContext context) {
}
else {
return super.canRetry(context)
&& this.expression.getValue(this.evaluationContext, lastThrowable, Boolean.class);
&& Boolean.TRUE.equals(this.expression.getValue(this.evaluationContext, lastThrowable, Boolean.class));
}
}

Expand Down

0 comments on commit 1c53950

Please sign in to comment.