danielgary / xmlrpcnet

Automatically exported from code.google.com/p/xmlrpcnet
0 stars 0 forks source link

XmlRpcClientProtocol problem with response from void method #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bug from Jonathan Shore:

Discovered one bug related to an XML-RPC request for a void method.   The
returned XML is:

<?xml version="1.0"?>
<methodResponse>
  <params/>
</methodResponse>

in response to calling some void method, such as:

        interface foo
        {
                void  dosomething (...)
        }

It all works well until line 205 in XmlRpcClientProtocol, where you attempt
to dereference resp.retVal.   resp will be null when a void method is
called.   Should read:

        reto = resp != null ? resp.retVal : null;

rather than:

        reto =  resp.retVal 

Original issue reported on code.google.com by ChasC...@gmail.com on 12 Aug 2008 at 5:26

GoogleCodeExporter commented 9 years ago
Fixed in revision 61.

Original comment by ChasC...@gmail.com on 30 Aug 2008 at 3:56

GoogleCodeExporter commented 9 years ago

Original comment by ChasC...@gmail.com on 7 Dec 2008 at 10:05