From 421a86098fd6bdcbe06e8e0f0d81ce12b0f5c1e1 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 14 Jul 2021 07:24:26 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/ContactInfo.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ContactInfo.java b/app/src/main/java/eu/faircode/email/ContactInfo.java index d52c25d593..5b94113261 100644 --- a/app/src/main/java/eu/faircode/email/ContactInfo.java +++ b/app/src/main/java/eu/faircode/email/ContactInfo.java @@ -408,7 +408,11 @@ public class ContactInfo { break; case "l": { - URL url = new URL(kv[1].trim()); + String svg = kv[1].trim(); + if (TextUtils.isEmpty(svg)) + continue; + + URL url = new URL(svg); Log.i("BIMI favicon " + url); HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();