Skip to content

NullReferenceException on AutorecoveringModel.IsClosed #829

@ig-sinicyn

Description

@ig-sinicyn

RabbitMQ.Client 6.0.0, RabbitMQ.Client.Impl.AutorecoveringModel:

        public bool IsClosed
        {
            get { return _delegate.IsClosed; }
        }

The getter throws null reference for disposed entities. Reason is here:

        private void Dispose(bool disposing)
        {
            if (disposing)
            {
               ...
                _delegate = null;
            }
        }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions