You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by az...@apache.org on 2007/12/05 12:46:11 UTC
svn commit: r601302 -
/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Author: azeez
Date: Wed Dec 5 03:45:56 2007
New Revision: 601302
URL: http://svn.apache.org/viewvc?rev=601302&view=rev
Log:
Null check
Modified:
webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?rev=601302&r1=601301&r2=601302&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java Wed Dec 5 03:45:56 2007
@@ -54,6 +54,7 @@
import java.util.HashMap;
import java.util.Iterator;
import java.util.Locale;
+import java.util.Map;
public class BeanUtil {
@@ -126,17 +127,18 @@
JClass supClass = jClass.getSuperclass();
while (!"java.lang.Object".equals(supClass.getQualifiedName())) {
properties = supClass.getDeclaredProperties();
- excludes = (ArrayList) axisService.getBeanExludeMap().get(
- supClass.getQualifiedName());
-
- for (int i = 0; i < properties.length; i++) {
- JProperty property = properties[i];
- //Excluding properties if it is suppose to be
- if(excludes != null && excludes.contains(
- getCorrectName(getCorrectName(property.getSimpleName())))) {
- continue;
+ Map map = axisService.getBeanExludeMap();
+ if (map != null) {
+ excludes = (ArrayList) map.get(supClass.getQualifiedName());
+ for (int i = 0; i < properties.length; i++) {
+ JProperty property = properties[i];
+ //Excluding properties if it is suppose to be
+ if(excludes != null && excludes.contains(
+ getCorrectName(getCorrectName(property.getSimpleName())))) {
+ continue;
+ }
+ propertyList.add(property);
}
- propertyList.add(property);
}
supClass = supClass.getSuperclass();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org