Bug 1044362 - NPE on task operation when there's no task with given ID.
Summary: NPE on task operation when there's no task with given ID.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: CR1
: 6.0.0
Assignee: Kris Verlaenen
QA Contact: Jiri Svitak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-18 08:38 UTC by Marek Baluch
Modified: 2015-06-02 01:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:13:25 UTC
Type: Bug


Attachments (Terms of Use)
stack-trace (3.46 KB, text/plain)
2013-12-18 08:38 UTC, Marek Baluch
no flags Details

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).


Note You need to log in before you can comment on or make changes to this bug.