]
Mario Fusco updated DROOLS-5908:
--------------------------------
Sprint: 2020 Week 52-03 (from Dec 21) (was: 2020 Week 49-51 (from Nov 30))
NPE in IntervalTrigger when timestamp + delay > endTime
-------------------------------------------------------
Key: DROOLS-5908
URL:
https://issues.redhat.com/browse/DROOLS-5908
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.47.0.Final
Reporter: Thomas Huriaux
Assignee: Mario Fusco
Priority: Minor
If using timer(expr: $d, $p; end=$e) with $e > now + $d
We have the following stack trace:
{code:java}
Exception in thread "Thread-1" java.lang.NullPointerException: Cannot invoke
"java.util.Date.getTime()" because "this.nextFireTime" is null at
org.drools.core.time.impl.IntervalTrigger.getTimeAfter(IntervalTrigger.java:224)
{code}
It should probably just not fire anything in that situation.