Thomas Huriaux created DROOLS-5908:
--------------------------------------
Summary: 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
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
nullException 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.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)