Set image to nil when trying to load nil URL
This commit is contained in:
parent
e0e369659e
commit
1cae0c4021
|
@ -23,6 +23,12 @@
|
|||
// Remove in progress downloader from queue
|
||||
[manager cancelForDelegate:self];
|
||||
|
||||
if (!url)
|
||||
{
|
||||
self.image = nil;
|
||||
return;
|
||||
}
|
||||
|
||||
UIImage *cachedImage = [manager imageWithURL:url];
|
||||
|
||||
if (cachedImage)
|
||||
|
|
Loading…
Reference in New Issue