[rabbitmq-discuss] RabbitMQ .NET Client Bug - ModelBase.BasicCancel Always Throws An Exception
joefitzgerald
joeyfitz at gmail.com
Thu Nov 1 19:20:31 GMT 2012
Folks,
I have run across an issue with ModelBase.BasicCancel which appears to be a
defect. The following statement always throws a NullReferenceException
here:
http://hg.rabbitmq.com/rabbitmq-dotnet-client/file/0037c3b3fa8d/projects/client/RabbitMQ.Client/src/client/impl/ModelBase.cs#l1135.
The 'k' object is instantiated here:
http://hg.rabbitmq.com/rabbitmq-dotnet-client/file/0037c3b3fa8d/projects/client/RabbitMQ.Client/src/client/impl/ModelBase.cs#l1117, and
it appears that k.m_consumer is never initialized (nor can it be), leading
to the null reference exception.
I've created a fix for the issue and validated that this lets
ModelBase.BasicCancel work as expected. Can someone please look at this
pull request and provide comments or merge to
master? https://github.com/rabbitmq/rabbitmq-dotnet-client/pull/11
Cheers,
Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121101/735c61c6/attachment.htm>
More information about the rabbitmq-discuss
mailing list