igors 02/02/07 10:50:17
Modified: java/src/org/apache/axis/encoding/ser BeanSerializer.java
Log:
Check for null pls! Not always that the read method is available for a property.
Revision Changes Path
1.3 +1 -1
xml-axis/java/src/org/apache/axis/encoding/ser/BeanSerializer.java
Index: BeanSerializer.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/BeanSerializer.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- BeanSerializer.java 2 Feb 2002 18:06:18 -0000 1.2
+++ BeanSerializer.java 7 Feb 2002 18:50:17 -0000 1.3
@@ -159,7 +159,7 @@
propName = format(propName, elementPropertyFormat);
Method readMethod = pd[i].getReadMethod();
- if (readMethod.getParameterTypes().length == 0) {
+ if (readMethod != null && readMethod.getParameterTypes().length ==
0) {
// Normal case: serialize the value
Object propValue = pd[i].getReadMethod().invoke(value,noArgs);
context.serialize(new QName("", propName), null,