IsHeadersPresent() throws NullReferenceException in 5.2 and 6.8.1 #1632
Unanswered
MartinBring
asked this question in
Q&A
Replies: 2 comments
-
It may be worth to check if this issue still exists in v7.0.0-rc.5, as it might be fixed by the way of #1596. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @MartinBring -
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Message.BasicProperties.IsHeadersPresent()
throws NullReferenceException sometimes (often), and sometimes not. It happens both in 5.2 and 6.8.1. It can have to do something how connections, channels, model are opened/closed. We experience that it doesn't happen with only one listener, but always after closing that one and starting two new connections/channels/listerners. Excuse me for not providing more information than this, i'm not that familiar with the area.Reproduction steps
Working
Not working
Expected behavior
IsHeadersPresent() should return true or false, not throw any exception.
Additional context
We now check the actual headers for null and Count > 0
queueMessage.BasicProperties.Headers != null && queueMessage.BasicProperties.Headers.Count > 0
Beta Was this translation helpful? Give feedback.
All reactions