diff --git a/BMM.UI.iOS/Application/Implementations/FileStorage/TouchFileStorage.cs b/BMM.UI.iOS/Application/Implementations/FileStorage/TouchFileStorage.cs index 98cffd837..e2592ae0f 100644 --- a/BMM.UI.iOS/Application/Implementations/FileStorage/TouchFileStorage.cs +++ b/BMM.UI.iOS/Application/Implementations/FileStorage/TouchFileStorage.cs @@ -63,6 +63,17 @@ public int RemoveAllDownloadedFilesAndGetCount() public bool IsDownloaded(IDownloadable downloadable) { + if (downloadable.Url == null) + { + _analytics.LogEvent("unexpected null for url", + new Dictionary + { + {"Track", downloadable.Id}, + {"Tags", downloadable.Tags} + }); + return false; + } + var path = PathByUrl(downloadable.Url); return File.Exists(path); }