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 to...@apache.org on 2002/10/08 00:49:49 UTC

cvs commit: xml-axis/java/src/org/apache/axis/encoding/ser BeanDeserializer.java

tomj        2002/10/07 15:49:49

  Modified:    java/src/org/apache/axis/encoding/ser Tag: interop4
                        BeanDeserializer.java
  Log:
  If we get a nil element, don't bother doing work.
  This protects against trying to Deserialize a nil anyType
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.55.4.3  +4 -0      xml-axis/java/src/org/apache/axis/encoding/ser/BeanDeserializer.java
  
  Index: BeanDeserializer.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/ser/BeanDeserializer.java,v
  retrieving revision 1.55.4.2
  retrieving revision 1.55.4.3
  diff -u -r1.55.4.2 -r1.55.4.3
  --- BeanDeserializer.java	7 Oct 2002 20:18:57 -0000	1.55.4.2
  +++ BeanDeserializer.java	7 Oct 2002 22:49:49 -0000	1.55.4.3
  @@ -200,6 +200,10 @@
           }  
           prevQName = elemQName;
   
  +        // Fastpath nil checks...
  +        if (context.isNil(attributes))
  +            return null;
  +        
           if (typeDesc != null) {       
               // Lookup the name appropriately (assuming an unqualified
               // name for SOAP encoding, using the namespace otherwise)