diff --git a/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala b/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala index 36f80ed5..a30b8961 100644 --- a/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala +++ b/xmpp-vala/src/module/xep/0115_entitiy_capabilities.vala @@ -110,7 +110,7 @@ namespace Xmpp.Xep.EntityCapabilities { Gee.List values = field.get_values(); values.sort(); foreach (string value in values) { - sb.append(sanitize(value)) + sb.append(sanitize(value ?? "")) .append("<"); } }