Skip to content

Commit 6c123b5

Browse files
avoid empty id rules
1 parent 8377918 commit 6c123b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/ericsson/ei/waitlist/WaitListWorker.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public void run() {
6464
String event = dbObject.get("Event").toString();
6565
rulesObject = rulesHandler.getRulesForEvent(event);
6666
String idRule = rulesObject.getIdentifyRules();
67+
if (idRule != null && !idRule.isEmpty()) {
6768
JsonNode ids = jmesPathInterface.runRuleOnEvent(idRule, event);
6869
if (ids.isArray()) {
6970
for (final JsonNode idJsonObj : ids) {
@@ -74,6 +75,7 @@ public void run() {
7475
}
7576
}
7677
}
78+
}
7779
}
7880
}
7981
}

0 commit comments

Comments
 (0)