[
http://jira.jboss.com/jira/browse/JBESB-568?page=all ]
Mark Little closed JBESB-568.
-----------------------------
Fix Version/s: 4.2 Milestone Release 3
(was: 4.2)
Resolution: Done
ActionUtils.getTaskObject NullPointerException when message is null
-------------------------------------------------------------------
Key: JBESB-568
URL:
http://jira.jboss.com/jira/browse/JBESB-568
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.2 Milestone Release 2
Reporter: Daniel Bevenius
Assigned To: Kevin Conner
Priority: Minor
Fix For: 4.2 Milestone Release 3
Test method:
public void testGetTaskObjectNegative()
{
ActionUtils.getTaskObject( null );
}
ActionUtils :
public static Object getTaskObject(Message message)
{
Object payload = (null==message)? null : message.getBody().get(CURRENT_OBJECT);
if(payload == null) {
payload = message.getBody().getByteArray();
}
return payload;
}
I'm not sure if it is ever possible for the message object passed in to be null but
perhaps the code should be modified anyway just in case.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira