Hide Forgot
Description of problem: Task operations like taskService.claim(), taskService.complete(), etc. will throw a NPE if the provided taskId is not in the database. See attached stack trace. Steps to Reproduce: 1. TaskService taskService = // ... 2. taskService.claim(-1, "mary"); Actual results: NPE. Expected results: Exception with an error message explaining the problem.
Created attachment 838171 [details] stack-trace
master: http://github.com/droolsjbpm/jbpm/commit/e3468f37e 6.0.x: http://github.com/droolsjbpm/jbpm/commit/3e49763c0
Verified in BPMS 6 CR1 (6.0.2-redhat-1).