mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-09 09:27:42 +02:00
CustomImageView: Fixed crash when the image URL is not valid
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user