Minor fix for visibility Rules Service

This commit is contained in:
George Kalampokis 2022-03-01 17:14:02 +02:00
parent 1e572b3214
commit 5ea8b9b964
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ public class VisibilityRuleServiceImpl implements VisibilityRuleService {
if (values instanceof List) { if (values instanceof List) {
return ((Collection<?>) values).contains(source); return ((Collection<?>) values).contains(source);
} else { } else {
return values.equals(source); if (values != null) {
return values.equals(source);
}
return false;
} }
} }
} }