summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-02-26 23:53:51 +0100
committercyBerta <cyberta@riseup.net>2021-02-26 23:53:51 +0100
commit2ace1e224bc15481dcaf4cfa46272adf7c01bdd8 (patch)
treeb0167d47f1076f2365f688baa585fb4d79dd293f /app
parentf5ac2b26a9efea7ff2efbf64a1ec1dd3be9e35cf (diff)
fix another empty alert on server reponding null a body during provider setup
Diffstat (limited to 'app')
-rw-r--r--app/src/insecure/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java2
-rw-r--r--app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/insecure/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java b/app/src/insecure/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
index 833d1e48..dfb5346b 100644
--- a/app/src/insecure/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
+++ b/app/src/insecure/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
@@ -204,7 +204,7 @@ public class ProviderApiManager extends ProviderApiManagerBase {
result.putBoolean(BROADCAST_RESULT_KEY, true);
}
} catch (NullPointerException | JSONException e) {
- setErrorResult(result, eipServiceJsonString);
+ setErrorResult(result, R.string.error_json_exception_user_message, null);
}
//TODO: check why the following line is not in production
result.putParcelable(PROVIDER_KEY, provider);
diff --git a/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java b/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
index 96d8ea69..70652365 100644
--- a/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
+++ b/app/src/production/java/se/leap/bitmaskclient/providersetup/ProviderApiManager.java
@@ -180,7 +180,7 @@ public class ProviderApiManager extends ProviderApiManagerBase {
result.putBoolean(BROADCAST_RESULT_KEY, true);
}
} catch (NullPointerException | JSONException e) {
- setErrorResult(result, eipServiceJsonString);
+ setErrorResult(result, R.string.error_json_exception_user_message, null);
}
return result;
}