diff options
author | cyBerta <cyberta@riseup.net> | 2024-03-09 02:22:38 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2024-03-09 02:22:38 +0100 |
commit | 084a223d07be6eac0058aef5abc859d7a560b11b (patch) | |
tree | 4e78521ab48808856833ee961a590a26cba515a6 /app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ConfigureProviderFragment.java | |
parent | 644a132d25563c5da6f5e410f39d771526849b6f (diff) |
catch nullpointer exception in ConfigureProviderFragment
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ConfigureProviderFragment.java')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ConfigureProviderFragment.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ConfigureProviderFragment.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ConfigureProviderFragment.java index cdb255fc..f20bc9b6 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ConfigureProviderFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/fragments/ConfigureProviderFragment.java @@ -223,8 +223,10 @@ public class ConfigureProviderFragment extends BaseSetupFragment implements Prop setupActivityCallback.onProviderSelected(provider); handler.postDelayed(() -> { if (!ProviderSetupObservable.isCanceled()) { - if (setupActivityCallback != null) { + try { setupActivityCallback.onConfigurationSuccess(); + } catch (NullPointerException npe) { + // callback disappeared in the meanwhile } } }, 750); |