Commit df991bb8 authored by cyberta's avatar cyberta

fix app crash if backend returns null instead of valid json response

parent 20206e56
......@@ -559,7 +559,7 @@ public abstract class ProviderApiManagerBase {
try {
responseJson = new JSONObject(plain_response);
} catch (JSONException e) {
} catch (NullPointerException | JSONException e) {
e.printStackTrace();
responseJson = getErrorMessageAsJson(error_json_exception_user_message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment