summaryrefslogtreecommitdiff
path: root/app/src/debug/java/se
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-08-14 01:38:16 +0200
committerParménides GV <parmegv@sdf.org>2014-08-14 01:38:16 +0200
commitdcf4b5f63e817a8ebff1ffd8cf1d4f4f4b7295fd (patch)
treea1a0403b974208a11e2252f628ce905442656243 /app/src/debug/java/se
parente7ff0b15109060326040f22ac60c4448a55f5667 (diff)
parentf05cf39fd6b18019dfeaf6c19d08ae68bf418fd6 (diff)
Merge branch 'bug/NoSuchElementException-isn't-handled-in-ProviderAPI-#5983' into develop
Diffstat (limited to 'app/src/debug/java/se')
-rw-r--r--app/src/debug/java/se/leap/bitmaskclient/ProviderAPI.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/debug/java/se/leap/bitmaskclient/ProviderAPI.java b/app/src/debug/java/se/leap/bitmaskclient/ProviderAPI.java
index 5549252e..63c022bf 100644
--- a/app/src/debug/java/se/leap/bitmaskclient/ProviderAPI.java
+++ b/app/src/debug/java/se/leap/bitmaskclient/ProviderAPI.java
@@ -763,6 +763,8 @@ public class ProviderAPI extends IntentService {
} catch (KeyManagementException e) {
// TODO Auto-generated catch block
e.printStackTrace();
+ } catch (NoSuchElementException e) {
+ json_file_content = formatErrorMessage(R.string.server_unreachable_message);
}
return json_file_content;
}