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();