diff options
author | Daniel Lublin <daniel@lublin.se> | 2020-06-25 10:42:06 +0300 |
---|---|---|
committer | Daniel Lublin <daniel@lublin.se> | 2020-06-25 10:42:06 +0300 |
commit | 4d984eb450d4e942148f3e14d0e6e9f5103d4e70 (patch) | |
tree | ef66a93e51d111ec61e261e325b44ea8b19f4ada | |
parent | 240d213406ed3a5d13d510f9e50cfeddab4db36c (diff) |
Catch error when resolving
-rw-r--r-- | src/main/java/se/lublin/humla/model/Server.java | 6 |
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); } } }); |