<div style="background:white;color:black;font-family:Consolas">So basic properties gets set in a message processing loop. Now I want to query it. Looks like the sender forgot to set basic properties correctly.</div><div style="background:white;color:black;font-family:Consolas">
<pre style="background:white;color:black;font-family:Consolas"> <span style="color:rgb(43,145,175)">IBasicProperties</span> basicProperties = ...;
<span style="color:blue">if</span> (basicProperties.ReplyToAddress != <span style="color:blue">null</span>)
{
...
}</pre></div><div style="background:white;color:black;font-family:Consolas"> </div><div style="background:white;color:black;font-family:Consolas">... but... do you think that I should receive an ArgumentNullException? The easy way around this would be to create a wrapper. Just thought I'd mention it.</div>
<div style="background:white;color:black;font-family:Consolas"> </div><div style="background:white;color:black;font-family:Consolas">System.ArgumentNullException: Value cannot be null.<br>Parameter name: input<br> at System.Text.RegularExpressions.Regex.Match(String input)<br>
at RabbitMQ.Client.PublicationAddress.Parse(String uriLikeString)<br> at RabbitMQ.Client.Impl.BasicProperties.get_ReplyToAddress()<br>...</div>