提交 0cc877ad 编写于 作者: J Juergen Hoeller

MethodReference accesses cached executor in a thread-safe manner

Issue: SPR-12269
上级 6009c09f
......@@ -230,7 +230,7 @@ public class MethodReference extends SpelNodeImpl {
private void updateExitTypeDescriptor() {
CachedMethodExecutor executorToCheck = this.cachedExecutor;
if (executorToCheck.get() instanceof ReflectiveMethodExecutor) {
if (executorToCheck != null && executorToCheck.get() instanceof ReflectiveMethodExecutor) {
Method method = ((ReflectiveMethodExecutor) executorToCheck.get()).getMethod();
this.exitTypeDescriptor = CodeFlow.toDescriptor(method.getReturnType());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册