提交 4c6a323e 编写于 作者: K kezhenxu94 提交者: wu-sheng

Fix NullPointerException in Spring interceptor (#4063)

上级 a8366125
......@@ -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())) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册