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/21 05:08:40 UTC
cvs commit: ws-axis/java/src/org/apache/axis/encoding/ser BeanSerializer.java
dims 2005/07/20 20:08:40
Modified: java/src/org/apache/axis/encoding/ser BeanSerializer.java
Log:
Fix for AXIS-2123 - NULLPointException thrown in BeanSerializer.java (org.apache.axis.encoding.ser)
Revision Changes Path
1.89 +1 -1 ws-axis/java/src/org/apache/axis/encoding/ser/BeanSerializer.java
Index: BeanSerializer.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/BeanSerializer.java,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -r1.88 -r1.89
--- BeanSerializer.java 14 Jun 2005 01:30:27 -0000 1.88
+++ BeanSerializer.java 21 Jul 2005 03:08:40 -0000 1.89
@@ -121,7 +121,7 @@
context.startElement(name, beanAttrs);
// check whether the array is converted to ArrayOfT shema type
- if (value.getClass().isArray()) {
+ if (value != null && value.getClass().isArray()) {
Object newVal = JavaUtils.convert(value, javaType);
if (newVal != null && javaType.isAssignableFrom(newVal.getClass())) {
value = newVal;