Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
RHEL ES 4/32bit
Description
When you call consumer->receive() on empty queue receive method returns NULL message but before return MessageConsumer::autoAcknowledge method is invoked. This method doesn't check message against NULL, this cause coredump is message is NULL.
Patch:
p<IMessage> MessageConsumer::autoAcknowledge(p<IMessage> message)
{
try
{
if ( message != NULL )
}
catch( bad_cast& bc )
return message ;