Skip to content

Commit

Permalink
MID-9133: fix for script expression panel with empty code
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Sep 27, 2023
1 parent 8a82524 commit 00a3694
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ private ScriptExpressionWrapper(ScriptExpressionEvaluatorType evaluator) {
}

public ScriptExpressionEvaluatorType toEvaluator() {
if (StringUtils.isEmpty(code)) {
return null;
}
return new ScriptExpressionEvaluatorType().code(code).language(language == null ? null : language.getLanguage());
}

Expand Down

0 comments on commit 00a3694

Please sign in to comment.