From f74107e3c47824e1cf4fdbc415d32871eb85f83c Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 26 Oct 2023 15:57:11 +0200 Subject: fix possible NPE in ProviderSetupObservable --- .../se/leap/bitmaskclient/providersetup/ProviderSetupObservable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src') diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderSetupObservable.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderSetupObservable.java index 56ef357b..90a32fea 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderSetupObservable.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderSetupObservable.java @@ -47,7 +47,7 @@ public class ProviderSetupObservable extends Observable { } public static void updateProgress(int progress) { - if (instance.canceled) { + if (getInstance().canceled) { return; } long now = System.currentTimeMillis(); -- cgit v1.2.3