From a80c8ac661b1a3702cc2e289a345b75718dae05d Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 21 Oct 2014 10:26:42 +0000 Subject: [PATCH] * fix NPE --- source/net/filebot/media/ReleaseInfo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/media/ReleaseInfo.java b/source/net/filebot/media/ReleaseInfo.java index a6a9f85f..0fa5fe1c 100644 --- a/source/net/filebot/media/ReleaseInfo.java +++ b/source/net/filebot/media/ReleaseInfo.java @@ -439,8 +439,8 @@ public class ReleaseInfo { @Override public boolean accept(File dir) { if (dir.isDirectory()) { - for (String entry : dir.list()) { - if (entryPattern.matcher(entry).matches()) { + for (File f : getChildren(dir)) { + if (entryPattern.matcher(f.getName()).matches()) { return true; } }