Unverified Commit 5ccdafa0 authored by Ricki Hirner's avatar Ricki Hirner 🐑
Browse files

ContactsSyncManager: URL fix

* ContactsSyncManager: don't try to download external resources which do not have a valid URL
parent fce2b859
......@@ -265,6 +265,11 @@ public class ContactsSyncManager extends SyncManager {
public byte[] download(String url, String accepts) {
HttpUrl httpUrl = HttpUrl.parse(url);
if (httpUrl == null) {
log.error("Invalid external resource URL");
return null;
String host = httpUrl.host();
if (host == null) {
log.error("External resource URL doesn't specify a host name");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment