Fix #1454: fix NPE issue about spring apo interceptor (#1467)

This commit is contained in:
Xin,Zhang 2018-07-18 10:19:35 +08:00 committed by Wu Sheng
parent 48348efe74
commit d38b208c9e
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ public class CreateAopProxyInterceptor implements InstanceMethodsAroundIntercept
Object ret) throws Throwable {
AdvisedSupport advisedSupport = (AdvisedSupport)allArguments[0];
if (EnhancedInstance.class.isAssignableFrom(advisedSupport.getTargetClass())) {
Class targetClass = advisedSupport.getTargetClass();
if (targetClass != null && EnhancedInstance.class.isAssignableFrom(targetClass)) {
return true;
}
return ret;