Compatibility fix

This commit is contained in:
Reinhard Pointner 2016-03-31 19:58:24 +00:00
parent 4d7a40b31b
commit 56900ad542
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class ExpressionFormatFunctions {
} }
public static Object any(Object c1, Object c2, Object... cN) { public static Object any(Object c1, Object c2, Object... cN) {
return stream(c1, c2, cN).findFirst().get(); return stream(c1, c2, cN).findFirst().orElse(null);
} }
public static List<Object> allOf(Object c1, Object c2, Object... cN) { public static List<Object> allOf(Object c1, Object c2, Object... cN) {