Bug 1024876

Summary: NPE when resource is added to kfs with unspecified path and rule in xls contains timer and calendar.
Product: [Retired] JBoss BRMS Platform 6 Reporter: Tomas David <tdavid>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas David <tdavid>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0   
Target Milestone: ER6   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:15:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomas David 2013-10-30 14:30:20 UTC
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):
Drools 6.0.0-SNAPSHOT
Drools 6.0.0.ER4

How reproducible:
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.

Actual results:
NPE is thrown.

Expected results:
Test should pass.

Additional info:
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.

Comment 2 Mario Fusco 2013-11-28 13:56:56 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/4cdd2aa58

Comment 3 Tomas David 2014-01-10 10:15:41 UTC
Verified on BRMS 6.0.0.ER7.