Fix NullPointerException in Spring interceptor (#4063)

This commit is contained in:
kezhenxu94 2019-12-14 19:41:58 +08:00 committed by 吴晟 Wu Sheng
parent a836612534
commit 4c6a323e4d
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ public class GetPropertyDescriptorsInterceptor implements InstanceMethodsAroundI
PropertyDescriptor[] propertyDescriptors = (PropertyDescriptor[])ret;
if (EnhancedInstance.class.isAssignableFrom(((BeanWrapperImpl)objInst).getRootClass())) {
Class<?> rootClass = ((BeanWrapperImpl) objInst).getRootClass();
if (rootClass != null && EnhancedInstance.class.isAssignableFrom(rootClass)) {
List<PropertyDescriptor> newPropertyDescriptors = new ArrayList<PropertyDescriptor>();
for (PropertyDescriptor descriptor : propertyDescriptors) {
if (!"skyWalkingDynamicField".equals(descriptor.getName())) {