Commit 6c5762e8 authored by Felix Paul Kühne's avatar Felix Paul Kühne

MLFile: fix runtime exception

parent ec8831a8
......@@ -445,7 +445,9 @@ NSString *const MLFileThumbnailWasUpdated = @"MLFileThumbnailWasUpdated";
NSMutableArray *languages = [NSMutableArray new];
for (NSUInteger x = 0; x < trackCount; x++) {
NSManagedObject *track = tracks[x];
[codecs addObject:[track valueForKey:@"codec"]];
NSString *codec = [track valueForKey:@"codec"];
if (codec)
[codecs addObject:codec];
NSString *language = [track valueForKey:@"language"];
if (language != nil)
[languages addObject:language];
......
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