axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/encoding DeserializationContext.java
Date Tue, 04 Dec 2001 20:57:23 GMT
gdaniels    01/12/04 12:57:23

  Modified:    java/src/org/apache/axis/encoding
                        DeserializationContext.java
  Log:
  Make sure it's an Element - might be something else, in which case just
  return null.
  
  Revision  Changes    Path
  1.41      +7 -2      xml-axis/java/src/org/apache/axis/encoding/DeserializationContext.java
  
  Index: DeserializationContext.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/encoding/DeserializationContext.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- DeserializationContext.java	2001/12/04 20:31:08	1.40
  +++ DeserializationContext.java	2001/12/04 20:57:23	1.41
  @@ -323,8 +323,13 @@
           MessageElement ret = null;
           if((idMap !=  null)){
               IDResolver resolver = (IDResolver)idMap.get(id);
  -            if(resolver != null)
  -               ret = (MessageElement)resolver.getReferencedObject(id);
  +            if(resolver != null) {
  +                try {
  +                    ret = (MessageElement)resolver.getReferencedObject(id);
  +                } catch (ClassCastException e) {
  +                    // No can do.
  +                }
  +            }
           }
           
           return ret;
  
  
  

Mime
View raw message