summaryrefslogtreecommitdiffstats
path: root/controlloop/common/feature-controlloop-utils
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2018-09-14 16:30:51 -0400
committerJim Hahn <jrh3@att.com>2018-09-14 17:17:53 -0400
commit0bd7ab17674ca4eee396dfe8df3a769632a6e733 (patch)
treeff7a2e7b7c51783a5779caa21fb6a221dab3c4f5 /controlloop/common/feature-controlloop-utils
parent97956f188f4a8d92d734bf491d5e15a78a03459f (diff)
fix NPE from rule timers
This problem occurs in rules that have "timer(expr)" expressions before the "when" clause. If a working memory element, other than the timer object, appears in the "when" clause and is updated BY ANY RULE, then an NPE is thrown. The solution is to segregate the objects so that rules having "timer(expr)" expressions only refer to one object, the XxxTimer object. In particular, the rule simply sets an "expired" flag in the XxxTimer object and then all other rules check that flag, rather than having their own "timer(expr)" expressions. Corrected comment associated with rule TIMER.FIRED. Change-Id: I9e6c20ee46af99234daee8ece4862edbd41ba714 Issue-ID: POLICY-1106 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop/common/feature-controlloop-utils')
0 files changed, 0 insertions, 0 deletions