From f7be44f6420fef708fff4d6e1f270be609afae37 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 24 Nov 2016 22:27:22 +0800 Subject: [PATCH] Update snap --- installer/snappy/snapcraft.yaml | 2 +- source/net/filebot/gio/PlatformGVFS.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/installer/snappy/snapcraft.yaml b/installer/snappy/snapcraft.yaml index 5d1505f4..e253522e 100644 --- a/installer/snappy/snapcraft.yaml +++ b/installer/snappy/snapcraft.yaml @@ -19,10 +19,10 @@ parts: source: . organize: filebot: filebot + after: [desktop-gtk2] java: plugin: nil stage-packages: [openjdk-8-jre, openjfx, jayatana] - after: [desktop-gtk2] mediainfo: plugin: nil stage-packages: [libmediainfo0v5, libchromaprint-tools] diff --git a/source/net/filebot/gio/PlatformGVFS.java b/source/net/filebot/gio/PlatformGVFS.java index 6f6e2cc2..b19d3bb3 100644 --- a/source/net/filebot/gio/PlatformGVFS.java +++ b/source/net/filebot/gio/PlatformGVFS.java @@ -9,6 +9,10 @@ public class PlatformGVFS implements GVFS { private final File gvfs; public PlatformGVFS(File gvfs) { + if (gvfs.list() == null) { + throw new IllegalArgumentException(gvfs.getPath() + " is not a valid directory"); + } + this.gvfs = gvfs; }