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 di...@apache.org on 2005/07/20 16:13:29 UTC
cvs commit: ws-axis/java/src/org/apache/axis/utils ArrayUtil.java
dims 2005/07/20 07:13:29
Modified: java/src/org/apache/axis/utils ArrayUtil.java
Log:
Fix for AXIS-2129 - NullPointerException sending array of org.w3c.dom.Elements
Revision Changes Path
1.5 +1 -1 ws-axis/java/src/org/apache/axis/utils/ArrayUtil.java
Index: ArrayUtil.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/utils/ArrayUtil.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ArrayUtil.java 4 May 2005 21:05:49 -0000 1.4
+++ ArrayUtil.java 20 Jul 2005 14:13:29 -0000 1.5
@@ -150,7 +150,7 @@
BeanPropertyDescriptor bpd = null;
int count = 0;
Class cls = clazz;
- while (!cls.getName().equals("java.lang.Object")) {
+ while (cls != null && cls.getName() != null && !cls.getName().equals("java.lang.Object")) {
BeanPropertyDescriptor bpds[] = BeanUtils.getPd(clazz);
for (int i = 0; i < bpds.length; i++) {
BeanPropertyDescriptor pd = bpds[i];