From e3724f96edc60f69e8cca05cadba3a15a53febb1 Mon Sep 17 00:00:00 2001
From: fiaxh <git@lightrise.org>
Date: Thu, 4 Jun 2020 14:07:43 +0200
Subject: Fix runtime critical in entity capabilities hashing

---
 xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'xmpp-vala')

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("<");
                     }
                 }
-- 
cgit v1.2.3-70-g09d2