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

Fix runtime exception

parent 88c0879e
......@@ -512,11 +512,16 @@
- (NSString *)_checkIfSubtitleWasFound:(NSString *)filePath
NSString *subtitlePath;
NSString *fileSub;
NSString *currentPath;
NSString *fileName = [[filePath lastPathComponent] stringByDeletingPathExtension];
if (fileName == nil)
return nil;
NSMutableArray *listOfSubtitles = [self _listOfSubtitles];
NSString *fileSub;
NSUInteger count = listOfSubtitles.count;
NSString *currentPath;
for (NSUInteger i = 0; i < count; i++) {
currentPath = listOfSubtitles[i];
fileSub = [NSString stringWithFormat:@"%@", currentPath];
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