Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-3711
Change-Id: I512abaca1defade0bee259b330eca2fea322eaf7
log.debug("Invalid occurrenses format. Max occurrence is {}", maxObj);
throw new ByActionStatusComponentException(ActionStatus.INVALID_OCCURRENCES);
}
- if (maxOccurrences <= 0 || maxOccurrences < minOccurrences) {
+ if (maxOccurrences < 0 || maxOccurrences < minOccurrences) {
log.debug("Invalid occurrenses format. min occurrence is {}, Max occurrence is {}", minOccurrences, maxOccurrences);
throw new ByActionStatusComponentException(ActionStatus.INVALID_OCCURRENCES);
}