summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-12-10 17:31:17 +0100
committercyBerta <cyberta@riseup.net>2021-12-10 17:31:17 +0100
commitc6ae44acadb8c124633c09c0e74f93b72595ec12 (patch)
tree194cb5cb2c5fb32a92eebe240f1fec3145fec937 /app/src
parent54a4934dc83b6d5753fb1ff367d1d60600e540bb (diff)
catch potential IllegalArgumentException when enqueuing intents for EIP and ProviderAPI Service
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/eip/EIP.java2
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
index 4db8f0c2..cf4dc9bf 100644
--- a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
+++ b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java
@@ -136,7 +136,7 @@ public final class EIP extends JobIntentService implements Observer {
static void enqueueWork(Context context, Intent work) {
try {
enqueueWork(context, EIP.class, JOB_ID, work);
- } catch (IllegalStateException e) {
+ } catch (IllegalStateException | IllegalArgumentException e) {
e.printStackTrace();
}
}
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java
index 709ca651..022ad040 100644
--- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java
+++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java
@@ -117,7 +117,7 @@ public class ProviderAPI extends JobIntentService implements ProviderApiManagerB
static void enqueueWork(Context context, Intent work) {
try {
ProviderAPI.enqueueWork(context, ProviderAPI.class, JOB_ID, work);
- } catch (IllegalStateException e) {
+ } catch (IllegalStateException | IllegalArgumentException e) {
e.printStackTrace();
}
}