summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2024-11-14 11:23:13 +0100
committercyberta <cyberta@riseup.net>2024-12-11 00:09:34 +0000
commite51cb3c7809d87e7e7b0e7513068b7b46a741b42 (patch)
treed36891cdb2ff5abb8ad86fb43c64353f018da29e
parent8d00d684997fe3fcd9f479394adea448242f74aa (diff)
fix NPE in equals method of Provider class
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/models/Provider.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/base/models/Provider.java b/app/src/main/java/se/leap/bitmaskclient/base/models/Provider.java
index b826d338..ff9c48c0 100644
--- a/app/src/main/java/se/leap/bitmaskclient/base/models/Provider.java
+++ b/app/src/main/java/se/leap/bitmaskclient/base/models/Provider.java
@@ -53,6 +53,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Locale;
+import java.util.Objects;
import java.util.Set;
import de.blinkt.openvpn.core.connection.Connection.TransportProtocol;
@@ -689,8 +690,8 @@ public final class Provider implements Parcelable {
vpnCertificate.equals(p.getVpnCertificate()) &&
allowAnonymous == p.allowsAnonymous() &&
allowRegistered == p.allowsRegistered() &&
- modelsProvider.equals(p.modelsProvider) &&
- modelsEIPService.equals(p.modelsEIPService) &&
+ Objects.equals(modelsProvider, p.modelsProvider) &&
+ Objects.equals(modelsEIPService, p.modelsEIPService) &&
Arrays.equals(modelsBridges, p.modelsBridges) &&
Arrays.equals(modelsGateways, p.modelsGateways);
} else return false;