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

fix compilation and potential runtime exception

parent f30d1289
......@@ -733,7 +733,7 @@
item = self.fileFromMediaLibrary;
else if (self.mediaList) {
NSArray *matches = [MLFile fileForURL:[_mediaPlayer.media.url absoluteString]];
item = matches.firstObject
item = matches.firstObject;
}
if (item) {
......
......@@ -162,7 +162,8 @@
- (void)_setThumbnail:(UIImage *)image forObjectId:(NSManagedObjectID *)objID
{
[_thumbnailCache setObject:image forKey:objID];
if (image)
[_thumbnailCache setObject:image forKey:objID];
}
- (UIImage *)thumbnailForMediaFile:(MLFile *)mediaFile
......
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