You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ar...@apache.org on 2008/10/17 17:18:10 UTC
svn commit: r705641 -
/incubator/qpid/trunk/qpid/dotnet/client-010/client/client/Message.cs
Author: arnaudsimon
Date: Fri Oct 17 08:18:09 2008
New Revision: 705641
URL: http://svn.apache.org/viewvc?rev=705641&view=rev
Log:
qpid-1372: added handling of empty message properties at the header level
Modified:
incubator/qpid/trunk/qpid/dotnet/client-010/client/client/Message.cs
Modified: incubator/qpid/trunk/qpid/dotnet/client-010/client/client/Message.cs
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/dotnet/client-010/client/client/Message.cs?rev=705641&r1=705640&r2=705641&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/dotnet/client-010/client/client/Message.cs (original)
+++ incubator/qpid/trunk/qpid/dotnet/client-010/client/client/Message.cs Fri Oct 17 08:18:09 2008
@@ -44,7 +44,7 @@
{
get
{
- if (_message.Header != null)
+ if (_message.Header != null && Header.Structs.Length > 1)
return (MessageProperties) Header.Structs[0];
return null;
}
@@ -62,7 +62,12 @@
get
{
if (Header != null)
- return (DeliveryProperties) Header.Structs[1];
+ {
+ if( Header.Structs.Length > 1 )
+ return (DeliveryProperties)Header.Structs[1];
+ return (DeliveryProperties)Header.Structs[0];
+ }
+
return null;
}
set