Skip to content

Commit 231198d

Browse files
committed
fix: throw ExpressionRuntimeException in SeqContainsKeyFunction
1 parent e271058 commit 231198d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/googlecode/aviator/runtime/function/seq/SeqContainsKeyFunction.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import java.util.List;
1919
import java.util.Map;
20+
import com.googlecode.aviator.exception.ExpressionRuntimeException;
2021
import com.googlecode.aviator.runtime.RuntimeUtils;
2122
import com.googlecode.aviator.runtime.function.AbstractFunction;
2223
import com.googlecode.aviator.runtime.function.FunctionUtils;
@@ -50,6 +51,8 @@ public AviatorObject call(final Map<String, Object> env, final AviatorObject arg
5051
Map seq = (Map) first;
5152
try {
5253
return AviatorBoolean.valueOf(seq.containsKey(arg2.getValue(env)));
54+
} catch (ExpressionRuntimeException e) {
55+
throw e;
5356
} catch (Exception e) {
5457
RuntimeUtils.printStackTrace(env, e);
5558
return AviatorBoolean.FALSE;

0 commit comments

Comments
 (0)