Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lublin <daniel@lublin.se>2020-06-25 10:42:06 +0300
committerDaniel Lublin <daniel@lublin.se>2020-06-25 10:42:06 +0300
commit4d984eb450d4e942148f3e14d0e6e9f5103d4e70 (patch)
treeef66a93e51d111ec61e261e325b44ea8b19f4ada
parent240d213406ed3a5d13d510f9e50cfeddab4db36c (diff)
Catch error when resolving
-rw-r--r--src/main/java/se/lublin/humla/model/Server.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/se/lublin/humla/model/Server.java b/src/main/java/se/lublin/humla/model/Server.java
index 1621803..dd4b30a 100644
--- a/src/main/java/se/lublin/humla/model/Server.java
+++ b/src/main/java/se/lublin/humla/model/Server.java
@@ -215,8 +215,10 @@ public class Server implements Parcelable {
// TODO SRV just picking the first record.
return;
}
- } catch (IOException e) {
- Log.d(Constants.TAG, "resolveSRV() run() " + e);
+ } catch (IOException | IllegalArgumentException e) {
+ // java.net.IDN.toASCII down in resolveSrv() happens to throw IAE
+ // https://github.com/MiniDNS/minidns/issues/104
+ Log.d(Constants.TAG, "Server, exception in srvResolve: " + e);
}
}
});