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/client Call.java
Date Sat, 01 Feb 2003 19:17:36 GMT
gdaniels    2003/02/01 11:17:36

  Modified:    java/src/org/apache/axis/client Call.java
  Log:
  Handle null bodyEl and fix bug noted by Wes Devauld
  
  Revision  Changes    Path
  1.200     +6 -1      xml-axis/java/src/org/apache/axis/client/Call.java
  
  Index: Call.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Call.java,v
  retrieving revision 1.199
  retrieving revision 1.200
  diff -u -r1.199 -r1.200
  --- Call.java	9 Jan 2003 07:28:33 -0000	1.199
  +++ Call.java	1 Feb 2003 19:17:36 -0000	1.200
  @@ -2168,6 +2168,10 @@
   
           resEnv = resMsg.getSOAPEnvelope();
           SOAPBodyElement bodyEl = resEnv.getFirstBody();
  +        if (bodyEl == null) {
  +            return null;
  +        }
  +        
           if (bodyEl instanceof RPCElement) {
               try {
                   resArgs = ((RPCElement) bodyEl).getParams();
  @@ -2207,7 +2211,8 @@
   
                   boolean findReturnParam = false;
                   QName returnParamQName = null;
  -                if (operation != null) operation.getReturnQName();
  +                if (operation != null)
  +                    returnParamQName = operation.getReturnQName();
   
                   if (!XMLType.AXIS_VOID.equals(getReturnType())) {
                       if (returnParamQName == null) {
  
  
  

Mime
View raw message