summaryrefslogtreecommitdiff
path: root/cpp/bindings/qpid/dotnet/src/Message.cpp
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2010-10-27 21:10:46 +0000
committerCharles E. Rolke <chug@apache.org>2010-10-27 21:10:46 +0000
commit1ceb190917514f68141a0c6b521d97b1a1ee12a3 (patch)
treebb492d3dd3547381aee5e24793957e627c813156 /cpp/bindings/qpid/dotnet/src/Message.cpp
parent8b9ea977b56f460a8984ab0a698ba5d985e5a053 (diff)
downloadqpid-python-1ceb190917514f68141a0c6b521d97b1a1ee12a3.tar.gz
QPID-2915 Qpid Cpp Messaging .NET Binding does not properly handle Qpid type VAR_VOID
* In C# map sender example, send null list and map values. * In Message ToString() display "" for null list and map values. * Do not dereference null values when determining their type. * Properly marshal native Qpid VAR_VOID data type. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1028099 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qpid/dotnet/src/Message.cpp')
-rw-r--r--cpp/bindings/qpid/dotnet/src/Message.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/bindings/qpid/dotnet/src/Message.cpp b/cpp/bindings/qpid/dotnet/src/Message.cpp
index 139ecee165..a554d19370 100644
--- a/cpp/bindings/qpid/dotnet/src/Message.cpp
+++ b/cpp/bindings/qpid/dotnet/src/Message.cpp
@@ -277,6 +277,12 @@ namespace Messaging {
ListAsString((System::Collections::ObjectModel::Collection<
System::Object^> ^)kvp.Value));
}
+ else if (nullptr == kvp.Value)
+ {
+ sb->AppendFormat(
+ "{0}=",
+ kvp.Key);
+ }
else
sb->AppendFormat("{0}={1}", kvp.Key, kvp.Value);
}
@@ -310,6 +316,10 @@ namespace Messaging {
sb->Append(ListAsString((System::Collections::ObjectModel::Collection<
System::Object^> ^)obj));
}
+ else if (nullptr == obj)
+ {
+ // no display for null objects
+ }
else
sb->Append(obj->ToString());
}