From 3ea880be6644dd926e01bd3cbe5ae47fee137ec9 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 11 Aug 2014 07:12:33 +0000 Subject: [PATCH] * improved error reporting --- source/net/filebot/format/ExpressionBindings.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/net/filebot/format/ExpressionBindings.java b/source/net/filebot/format/ExpressionBindings.java index 8ec547ec..43a1f53e 100644 --- a/source/net/filebot/format/ExpressionBindings.java +++ b/source/net/filebot/format/ExpressionBindings.java @@ -66,6 +66,9 @@ public class ExpressionBindings extends AbstractMap implements B } } catch (Exception e) { // check InvocationTargetException cause + if (e.getCause() instanceof NullPointerException) { + return null; + } if (e.getCause() instanceof BindingException) { throw (BindingException) e.getCause(); }