fix error getting trading results if a user has never traded before on his polo account
This commit is contained in:
parent
b142eff8e0
commit
8ddab27903
|
@ -98,6 +98,9 @@ public class GunbotProxyController {
|
|||
}
|
||||
String result = gunbotProxyService.getTradeHistory(market);
|
||||
|
||||
if (result.equals("[]")){
|
||||
return result;
|
||||
}
|
||||
JsonElement jelement = new JsonParser().parse(result);
|
||||
JsonObject jobject = jelement.getAsJsonObject();
|
||||
JsonArray jarray = jobject.getAsJsonArray(currencyPair);
|
||||
|
|
Loading…
Reference in New Issue