Skip to content

Commit

Permalink
MID-8283: add null as variable 'input' to objectCollectionView column…
Browse files Browse the repository at this point in the history
… expression when input is empty
  • Loading branch information
skublik committed Dec 5, 2022
1 parent 079a3f2 commit f45a5bd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,8 @@ protected Collection<String> evaluateExpression(C rowValue, Item<?, ?> columnIte
variablesMap.put(ExpressionConstants.VAR_OBJECT, rowValue, rowValue.getClass());
if (columnItem != null) {
variablesMap.put(ExpressionConstants.VAR_INPUT, columnItem, columnItem.getDefinition());
} else {
variablesMap.put(ExpressionConstants.VAR_INPUT, null, String.class);
}
return ExpressionUtil.evaluateStringExpression(variablesMap, getPageBase().getPrismContext(), expression,
MiscSchemaUtil.getExpressionProfile(), getPageBase().getExpressionFactory(), "evaluate column expression",
Expand Down

0 comments on commit f45a5bd

Please sign in to comment.