mirror of
https://github.com/etesync/android
synced 2024-11-26 01:48:34 +00:00
ContactsSyncManager: URL fix
* ContactsSyncManager: don't try to download external resources which do not have a valid URL
This commit is contained in:
parent
fce2b85991
commit
5ccdafa074
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user