Set image to nil when trying to load nil URL

This commit is contained in:
Olivier Poitrey 2010-06-11 06:17:54 +02:00
parent e0e369659e
commit 1cae0c4021
1 changed files with 6 additions and 0 deletions

View File

@ -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)