CustomImageView: Fixed crash when the image URL is not valid

This commit is contained in:
manuroe 2015-01-13 17:11:15 +01:00
parent e8251c0e05
commit d5d757fb60

View file

@ -473,6 +473,13 @@
}
- (void)updateProgressUI:(NSDictionary*)downloadStatsDict {
// Sanity check: updateProgressUI may be called while there is no stats available
// This happens when the download failed at the very beginning.
if (nil == downloadStatsDict) {
return;
}
NSNumber* progressNumber = [downloadStatsDict valueForKey:kMediaLoaderProgressRateKey];
if (progressNumber) {