mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Handle empty Json values:
* Replace Json::Value::isNull() and Json::Value::empty with operator bool()
This commit is contained in:
committed by
Nik Bougalis
parent
a5a9242f4e
commit
9111ad1a9d
@@ -1047,7 +1047,7 @@ struct RPCCallImp
|
||||
if (!reader.parse (strData, jvReply))
|
||||
throw std::runtime_error ("couldn't parse reply from server");
|
||||
|
||||
if (jvReply.isNull ())
|
||||
if (!jvReply)
|
||||
throw std::runtime_error ("expected reply to have result, error and id properties");
|
||||
|
||||
Json::Value jvResult (Json::objectValue);
|
||||
|
||||
Reference in New Issue
Block a user