Browse Source

fix runtime exception

Felix Paul Kühne 10 years ago
parent
commit
63a8b0e019
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Sources/VLCLocalPlexFolderListViewController.m

+ 2 - 1
Sources/VLCLocalPlexFolderListViewController.m

@@ -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;
     }