summaryrefslogtreecommitdiff
path: root/cpp/src/qmf/SchemaId.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qmf/SchemaId.cpp')
-rw-r--r--cpp/src/qmf/SchemaId.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qmf/SchemaId.cpp b/cpp/src/qmf/SchemaId.cpp
index 110a2553fd..25fa9915ae 100644
--- a/cpp/src/qmf/SchemaId.cpp
+++ b/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;
}