From 2cdebbfbd14822ace72d96e56f2168f5db8eecd5 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 10 Oct 2016 21:31:39 +0800 Subject: [PATCH] Use expression unwind behaviour (i.e. throw exceptions) in check / joining / joiningDistinct --- source/net/filebot/format/ExpressionFormatMethods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/format/ExpressionFormatMethods.java b/source/net/filebot/format/ExpressionFormatMethods.java index 56825383..25875bb4 100644 --- a/source/net/filebot/format/ExpressionFormatMethods.java +++ b/source/net/filebot/format/ExpressionFormatMethods.java @@ -395,7 +395,7 @@ public class ExpressionFormatMethods { } // sort unique - String[] list = stream.map(Objects::toString).filter(s -> !s.isEmpty()).distinct().sorted(String.CASE_INSENSITIVE_ORDER).toArray(String[]::new); + String[] list = stream.map(Objects::toString).filter(s -> !s.isEmpty()).distinct().sorted().toArray(String[]::new); if (list.length > 0) { return String.join(delimiter, list); }