aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/rpc/jsonrpc/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/rpc/jsonrpc/client.go')
-rw-r--r--libgo/go/rpc/jsonrpc/client.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/rpc/jsonrpc/client.go b/libgo/go/rpc/jsonrpc/client.go
index dcaa69f..5b806bd 100644
--- a/libgo/go/rpc/jsonrpc/client.go
+++ b/libgo/go/rpc/jsonrpc/client.go
@@ -98,6 +98,9 @@ func (c *clientCodec) ReadResponseHeader(r *rpc.Response) os.Error {
}
func (c *clientCodec) ReadResponseBody(x interface{}) os.Error {
+ if x == nil {
+ return nil
+ }
return json.Unmarshal(*c.resp.Result, x)
}