From c22d91c4d91e86bdde7756d8470347ebe5334dd2 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 22 May 2017 20:43:24 +0800 Subject: [PATCH] Avoid warnings when just fetching movie entries --- source/net/filebot/media/MediaDetection.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/net/filebot/media/MediaDetection.java b/source/net/filebot/media/MediaDetection.java index fedd5a74..4c82c158 100644 --- a/source/net/filebot/media/MediaDetection.java +++ b/source/net/filebot/media/MediaDetection.java @@ -564,9 +564,11 @@ public class MediaDetection { List options = new ArrayList(); // try xattr metadata if enabled - Object metaObject = xattr.getMetaInfo(movieFile); - if (metaObject instanceof Movie) { - options.add((Movie) metaObject); + if (movieFile.exists()) { + Object metaObject = xattr.getMetaInfo(movieFile); + if (metaObject instanceof Movie) { + options.add((Movie) metaObject); + } } // lookup by id from nfo file