summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qmf/SchemaId.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src/qmf/SchemaId.cpp')
-rw-r--r--qpid/cpp/src/qmf/SchemaId.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qmf/SchemaId.cpp b/qpid/cpp/src/qmf/SchemaId.cpp
index 110a2553fd..25fa9915ae 100644
--- a/qpid/cpp/src/qmf/SchemaId.cpp
+++ b/qpid/cpp/src/qmf/SchemaId.cpp
@@ -78,7 +78,8 @@ Variant::Map SchemaIdImpl::asMap() const
result["_type"] = "_data";
else
result["_type"] = "_event";
- result["_hash"] = hash;
+ if (!hash.isNull())
+ result["_hash"] = hash;
return result;
}