You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by js...@apache.org on 2023/03/20 17:40:25 UTC
[unomi] branch UNOMI-745-fix-NPE created (now 9df7e1294)
This is an automated email from the ASF dual-hosted git repository.
jsinovassinnaik pushed a change to branch UNOMI-745-fix-NPE
in repository https://gitbox.apache.org/repos/asf/unomi.git
at 9df7e1294 UNOMI-745 : check condition to avoid NPE
This branch includes the following new commits:
new 9df7e1294 UNOMI-745 : check condition to avoid NPE
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[unomi] 01/01: UNOMI-745 : check condition to avoid NPE
Posted by js...@apache.org.
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 9df7e12945ae112f62bd741ed283062eced2be27
Author: jsinovassin <js...@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);
}
}