* fix fix NPE

This commit is contained in:
Reinhard Pointner 2013-04-01 15:05:46 +00:00
parent 87c6648a03
commit 84075b35c8
1 changed files with 2 additions and 2 deletions

View File

@ -629,8 +629,8 @@ public class MediaDetection {
}
}
if (stripReleaseInfo(f.getParentFile().getName()).length() > 0) {
return f.getParentFile();
if (movieFile.getParentFile() != null && stripReleaseInfo(movieFile.getParentFile().getName()).length() > 0) {
return movieFile.getParentFile();
}
return null;
}