diff options
Diffstat (limited to 'cpp/src/qmf/SchemaId.cpp')
| -rw-r--r-- | cpp/src/qmf/SchemaId.cpp | 3 |
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; } |
