Commit f4598267 authored by Carola's avatar Carola
Browse files

return early if there is no url

parent 3e6442ed
......@@ -78,6 +78,7 @@ NSString *const MLFileThumbnailWasUpdated = @"MLFileThumbnailWasUpdated";
+ (NSArray *)fileForURL:(NSURL *)url;
if (!url) return nil;
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSManagedObjectContext *moc = [[MLMediaLibrary sharedMediaLibrary] managedObjectContext];
if (!moc || moc.persistentStoreCoordinator == nil)
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