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:
Diffstat (limited to 'src/main/java/se/lublin/humla/model/Server.java')
-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);
}
}
});