aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-06-04 14:07:43 +0200
committerfiaxh <git@lightrise.org>2020-06-04 14:08:41 +0200
commite3724f96edc60f69e8cca05cadba3a15a53febb1 (patch)
tree03cd8eceae6b4555a66e2b67f494e5ce2e38f24c
parentcdc505f550242801ef53894f21e2dfa1a263be48 (diff)
downloaddino-e3724f96edc60f69e8cca05cadba3a15a53febb1.tar.gz
dino-e3724f96edc60f69e8cca05cadba3a15a53febb1.zip
Fix runtime critical in entity capabilities hashing
-rw-r--r--xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala b/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala
index 4f2dadfb..be7db509 100644
--- a/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala
+++ b/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala
@@ -147,7 +147,7 @@ namespace Xmpp.Xep.EntityCapabilities {
Gee.List<string> values = field.get_values();
values.sort();
foreach (string value in values) {
- sb.append(sanitize(value))
+ sb.append(sanitize(value ?? ""))
.append("<");
}
}