aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmpp-vala/src/module/presence/stanza.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/presence/stanza.vala b/xmpp-vala/src/module/presence/stanza.vala
index a7bcbb56..78ec97e4 100644
--- a/xmpp-vala/src/module/presence/stanza.vala
+++ b/xmpp-vala/src/module/presence/stanza.vala
@@ -57,7 +57,10 @@ public class Stanza : Xmpp.Stanza {
public string show {
get {
StanzaNode? show_node = stanza.get_subnode(NODE_SHOW);
- return show_node != null ? show_node.get_string_content() : SHOW_ONLINE;
+ if (show_node == null) {
+ return SHOW_ONLINE;
+ }
+ return show_node.get_string_content() ?? SHOW_ONLINE;
}
set {
if (value != SHOW_ONLINE) {