Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.4
-
None
-
None
Description
Caused by: java.lang.NullPointerException at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:304)
The if block doesn't protect against the dSer variable from being null which will cause a NPE when it tries to call dSer.registerValueTarget:
if (!((dSer != null) && (dSer instanceof ArrayDeserializer))) {
collectionIndex++;
dSer.registerValueTarget(new BeanPropertyTarget(value,
propDesc, collectionIndex));
I think the if block should be changed to:
if ( dSer != null && !(dSer instanceof ArrayDeserializer)) {