This is an automated email from the ASF dual-hosted git repository. jsinovassinnaik pushed a commit to branch UNOMI-745-fix-NPE in repository https://gitbox.apache.org/repos/asf/unomi.git
commit 597b7788fb1da17ff1aff72eba1867868988da09 Author: jsinovassin <jsinovassinn...@jahia.com> AuthorDate: Mon Mar 20 18:36:16 2023 +0100 UNOMI-745 : check condition to avoid NPE --- services/src/main/java/org/apache/unomi/services/impl/ParserHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/apache/unomi/services/impl/ParserHelper.java b/services/src/main/java/org/apache/unomi/services/impl/ParserHelper.java index d4efb3a47..f7896beb3 100644 --- a/services/src/main/java/org/apache/unomi/services/impl/ParserHelper.java +++ b/services/src/main/java/org/apache/unomi/services/impl/ParserHelper.java @@ -190,7 +190,7 @@ public class ParserHelper { eventTypeIds.add(eventTypeId); } } - } else if (condition.getConditionType().getParentCondition() != null) { + } else if (condition.getConditionType() != null && condition.getConditionType().getParentCondition() != null) { visitConditions(condition.getConditionType().getParentCondition(), this); } }