Red Hat Bugzilla – Bug 1024876
NPE when resource is added to kfs with unspecified path and rule in xls contains timer and calendar.
Last modified: 2014-08-06 16:15:42 EDT
Description of problem:
NPE is thrown, when resource is added to KieFileSystem with unspecified path and rule in xls contains timer and calendar. Detailed description is below in Steps to Reproduce.
Version-Release number of selected component (if applicable):
Pull request #276 submited in Drools.
Steps to Reproduce:
1. Create test with one kieSession. At initialization, write xls resource into KieFileSystem with unspecified path. Create and set calendar. Set clock to some day, when the rule do not fire. Finally fireAllRules.
2. Create xls decision table with one rule. Rule should contain timer ("int" timer and "repeat interval" value should be zero) and calendar, which make rule active in one day of week.
3. Run test.
NPE is thrown.
Test should pass.
When resource is added with specified path into kfs, test pass.
When clock are set to day when rule should fire, test pass.
When "repeat interval" value is not zero, test pass.
Fixed by https://github.com/droolsjbpm/drools/commit/4cdd2aa58
Verified on BRMS 6.0.0.ER7.