Fix compiling null AssignmentExpressions

This commit is contained in:
Luck 2017-11-19 19:09:21 +00:00
parent 6ca9eb13dd
commit 6401480874
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -42,6 +42,9 @@ import javax.script.ScriptEngine;
public class AssignmentExpression { public class AssignmentExpression {
public static AssignmentExpression compile(String expression) { public static AssignmentExpression compile(String expression) {
if (expression == null) {
return null;
}
return new AssignmentExpression(expression); return new AssignmentExpression(expression);
} }