mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-04 16:35:08 -05:00
* fix potential NPE
This commit is contained in:
parent
f89ee90f72
commit
aca8be2620
@ -889,10 +889,9 @@ public class MediaDetection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isStructureRoot(File folder) throws IOException {
|
public static boolean isStructureRoot(File folder) throws IOException {
|
||||||
if (folder.getName().isEmpty() || releaseInfo.getVolumeRoots().contains(folder)) {
|
if (folder == null || folder.getName() == null || folder.getName().isEmpty() || releaseInfo.getVolumeRoots().contains(folder)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return releaseInfo.getStructureRootPattern().matcher(folder.getName()).matches();
|
return releaseInfo.getStructureRootPattern().matcher(folder.getName()).matches();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user