Commit 63a8b0e0 authored by Felix Paul Kühne's avatar Felix Paul Kühne

fix runtime exception

parent e8f106f1
......@@ -248,7 +248,8 @@
NSData *imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:url]];
if (imageData) {
image = [[UIImage alloc] initWithData:imageData];
[_imageCache setObject:image forKey:url];
if (image)
[_imageCache setObject:image forKey:url];
}
return image;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment