diff --git a/src/exchanges/kraken.cpp b/src/exchanges/kraken.cpp index 26b41f2..90bb138 100644 --- a/src/exchanges/kraken.cpp +++ b/src/exchanges/kraken.cpp @@ -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();