Commit 9de80cd2 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix runtime exception

(cherry picked from commit e2fcfb7f)
parent bb772be0
......@@ -514,11 +514,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