From 96ca9d3144797df4f038a4c01890f1f46038e709 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 11 Oct 2023 18:04:02 +0200 Subject: [PATCH] Prevent DNS lookup ctor exception --- app/src/main/java/eu/faircode/email/DnsHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/DnsHelper.java b/app/src/main/java/eu/faircode/email/DnsHelper.java index 91337f78ef..a4867f4f18 100644 --- a/app/src/main/java/eu/faircode/email/DnsHelper.java +++ b/app/src/main/java/eu/faircode/email/DnsHelper.java @@ -245,7 +245,9 @@ public class DnsHelper { record.query = name; return result.toArray(new DnsRecord[0]); - } catch (TextParseException ex) { + } catch (Throwable ex) { + // TextParseException + // Lookup static ctor: RuntimeException("Failed to initialize resolver") Log.e(ex); return new DnsRecord[0]; }