You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by sa...@apache.org on 2011/12/13 11:28:49 UTC

svn commit: r1213639 - /axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java

Author: sagara
Date: Tue Dec 13 10:28:49 2011
New Revision: 1213639

URL: http://svn.apache.org/viewvc?rev=1213639&view=rev
Log:
Fixed AXIS2-5072 - Added a condition to skip indexed properties.

Modified:
    axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java

Modified: axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?rev=1213639&r1=1213638&r2=1213639&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java (original)
+++ axis/axis2/java/core/trunk/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java Tue Dec 13 10:28:49 2011
@@ -172,12 +172,12 @@ public class BeanUtil {
             PropertyDescriptor[] properties = beanInfo.getPropertyDescriptors();
             for (PropertyDescriptor property : properties) {
                 String propertyName = property.getName();
+                Class<?> ptype = property.getPropertyType();
                 if (propertyName.equals("class") ||
-                    beanExcludeInfo != null && beanExcludeInfo.isExcludedProperty(propertyName)) {
+                    beanExcludeInfo != null && beanExcludeInfo.isExcludedProperty(propertyName) || ptype == null) {
                     continue;
                 }
 
-                Class<?> ptype = property.getPropertyType();
                 Method readMethod = property.getReadMethod();
                 if (readMethod == null) {
                     Class propertyType = property.getPropertyType();