Prevent crash when Kraken balance answer is null.
This commit is contained in:
parent
ebd5ff6fcd
commit
b0bd473e96
|
@ -72,6 +72,12 @@ void ExchangeHandlerKraken::analyzeAccountBalance()
|
|||
|
||||
void ExchangeHandlerKraken::analyzeAccountBalanceJSON(json::value jvalue)
|
||||
{
|
||||
if (jvalue.is_null())
|
||||
{
|
||||
lerr << "Kraken balance answer is null.";
|
||||
return;
|
||||
}
|
||||
|
||||
if (jvalue["error"].size())
|
||||
{
|
||||
lerr << "Error in Kraken balance answer: " << jvalue["error"][0].as_string();
|
||||
|
|
Loading…
Reference in New Issue
Block a user