]
Alejandro Guizar resolved JBPM-2069.
------------------------------------
Resolution: Done
IntegerToLongConverter not consistent when dealing with null-values
-------------------------------------------------------------------
Key: JBPM-2069
URL:
https://jira.jboss.org/browse/JBPM-2069
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 3.2.5 GA
Reporter: Hans Huber
Assignee: Alejandro Guizar
Priority: Minor
Fix For: jBPM 3.2.10
Original Estimate: 0 minutes
Remaining Estimate: 0 minutes
org.jbpm.context.exe.converter.IntegerToLongConverter.supports(Object) return true for
null values.
org.jbpm.context.exe.converter.IntegerToLongConverter.convert(Object) on the other hand
throws a NPE when a null value is passed in.
i found this inconsistency when i tried to null a previously set variable with
executionContext.setVariable("foobar", new Long(1));
executionContext.setVariable("foobar", null);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: