Commit de41f216 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

fix runtime exception

(cherry picked from commit 63a8b0e0)
parent 1d9a5ed6
......@@ -252,7 +252,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