summaryrefslogtreecommitdiff
path: root/qpid
diff options
context:
space:
mode:
authorArnaud Simon <arnaudsimon@apache.org>2008-10-17 15:18:09 +0000
committerArnaud Simon <arnaudsimon@apache.org>2008-10-17 15:18:09 +0000
commite8b912389729d6af79ab99bd555afa28acf277bc (patch)
tree3cb344986285877215818f3fd18e9e35013346a2 /qpid
parent21261b26539a4b55ab8ce9620c2e986ec30d1963 (diff)
downloadqpid-python-e8b912389729d6af79ab99bd555afa28acf277bc.tar.gz
qpid-1372: added handling of empty message properties at the header level
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@705641 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
-rw-r--r--qpid/dotnet/client-010/client/client/Message.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/qpid/dotnet/client-010/client/client/Message.cs b/qpid/dotnet/client-010/client/client/Message.cs
index 3e18b4d7b7..567ca5cae7 100644
--- a/qpid/dotnet/client-010/client/client/Message.cs
+++ b/qpid/dotnet/client-010/client/client/Message.cs
@@ -44,7 +44,7 @@ namespace org.apache.qpid.client
{
get
{
- if (_message.Header != null)
+ if (_message.Header != null && Header.Structs.Length > 1)
return (MessageProperties) Header.Structs[0];
return null;
}
@@ -62,7 +62,12 @@ namespace org.apache.qpid.client
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