diff --git a/common/src/main/java/me/lucko/luckperms/common/assignments/AssignmentExpression.java b/common/src/main/java/me/lucko/luckperms/common/assignments/AssignmentExpression.java index 7bdc10c5a..4010b9c2b 100644 --- a/common/src/main/java/me/lucko/luckperms/common/assignments/AssignmentExpression.java +++ b/common/src/main/java/me/lucko/luckperms/common/assignments/AssignmentExpression.java @@ -42,6 +42,9 @@ import javax.script.ScriptEngine; public class AssignmentExpression { public static AssignmentExpression compile(String expression) { + if (expression == null) { + return null; + } return new AssignmentExpression(expression); }