From 0dc6a49ef5ed84c95cc4e0e9764057edd40b6b14 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 7 Apr 2016 16:43:40 +0000 Subject: [PATCH] Deal with empty strings as if they're null in the format --- source/net/filebot/format/ExpressionFormatFunctions.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/net/filebot/format/ExpressionFormatFunctions.java b/source/net/filebot/format/ExpressionFormatFunctions.java index c7aaf90d..c83d8d35 100644 --- a/source/net/filebot/format/ExpressionFormatFunctions.java +++ b/source/net/filebot/format/ExpressionFormatFunctions.java @@ -31,6 +31,9 @@ public class ExpressionFormatFunctions { return null; } } + if (object instanceof CharSequence && object.toString().isEmpty()) { + return null; + } return object; }