summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/DnsResolver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/DnsResolver.java b/app/src/main/java/se/leap/bitmaskclient/DnsResolver.java
index 55cf1123..069318a4 100644
--- a/app/src/main/java/se/leap/bitmaskclient/DnsResolver.java
+++ b/app/src/main/java/se/leap/bitmaskclient/DnsResolver.java
@@ -21,7 +21,7 @@ class DnsResolver implements Dns {
} else {
currentProvider = observable.getCurrentProvider();
}
- if (currentProvider != null && currentProvider.hasProviderIp()) {
+ if (currentProvider.hasProviderIp()) {
ArrayList<InetAddress> addresses = new ArrayList<>();
addresses.add(InetAddress.getByAddress(hostname, currentProvider.getProviderIpAsBytes()));
return addresses;