Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1044362

Summary: NPE on task operation when there's no task with given ID.
Product: [Retired] JBoss BPMS Platform 6 Reporter: Marek Baluch <mbaluch>
Component: jBPM CoreAssignee: Kris Verlaenen <kverlaen>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Svitak <jsvitak>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0.0CC: mbaluch, rzhang
Target Milestone: CR1   
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:13:25 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:
Embargoed:
Attachments:
Description Flags
stack-trace none

Description Marek Baluch 2013-12-18 08:38:23 UTC
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.

Comment 1 Marek Baluch 2013-12-18 08:38:55 UTC
Created attachment 838171 [details]
stack-trace

Comment 3 Jiri Svitak 2014-01-20 12:28:57 UTC
Verified in BPMS 6 CR1 (6.0.2-redhat-1).