From 6c85adb431c70d8fa2a4f74e2b45731318dc7d0e Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 19 Nov 2015 12:43:40 +0000 Subject: [PATCH] * sanity check --- source/net/filebot/format/MediaBindingBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index 03fc441e..d9c6d578 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -777,7 +777,7 @@ public class MediaBindingBean { public String getUserDefinedLabel() throws IOException { for (Entry it : getUserDefinedArguments().entrySet()) { if (it.getKey().endsWith("label")) { - if (it.getValue().length() > 0) { + if (it.getValue() != null && it.getValue().length() > 0) { return it.getValue(); } }