Fix potential NPE in the ExpressionRetryPolicy

This commit is contained in:
Yaozeyu
2024-05-11 01:39:41 +08:00
committed by GitHub
parent f94bfff82e
commit 1c539502b7

View File

@@ -116,7 +116,7 @@ public class ExpressionRetryPolicy extends SimpleRetryPolicy implements BeanFact
}
else {
return super.canRetry(context)
&& this.expression.getValue(this.evaluationContext, lastThrowable, Boolean.class);
&& Boolean.TRUE.equals(this.expression.getValue(this.evaluationContext, lastThrowable, Boolean.class));
}
}