mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +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
@@ -452,7 +452,7 @@ Json::Value PathRequest::doUpdate (RippleLineCache::ref cache, bool fast)
|
||||
jvStatus[jss::destination_account] = getApp().accountIDCache().toBase58(*raDstAccount);
|
||||
jvStatus[jss::destination_amount] = saDstAmount.getJson (0);
|
||||
|
||||
if (!jvId.isNull ())
|
||||
if (jvId)
|
||||
jvStatus["id"] = jvId;
|
||||
|
||||
Json::Value jvArray = Json::arrayValue;
|
||||
|
||||
Reference in New Issue
Block a user