Commit a13306cc authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix runtime exception

(cherry picked from commit febbd62e)
parent fcf0b237
......@@ -874,7 +874,15 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles";
NSManagedObjectContext *moc = [self managedObjectContext];
if (!moc)
return;
NSArray *results = [moc executeFetchRequest:request error:nil];
NSArray *results;
@try {
results = [moc executeFetchRequest:request error:nil];
}
@catch (NSException *exception) {
NSLog(@"media database update failed");
return;
}
NSFileManager *fileManager = [NSFileManager defaultManager];
unsigned int count = (unsigned int)results.count;
......
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