IntegerToLongConverter not consistent when dealing with null-values
-------------------------------------------------------------------
Key: JBPM-2069
URL:
https://jira.jboss.org/jira/browse/JBPM-2069
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Core Engine
Affects Versions: jBPM 3.2.5 GA
Reporter: Hans Huber
Priority: Minor
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:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira