From ef0483765a0fd567f25b1f0af6df04e8973e5624 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Mon, 20 Mar 2017 19:27:39 +0100 Subject: Small bug fixes and compatibility with Vala 0.36 --- xmpp-vala/src/module/xep/0084_user_avatars.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmpp-vala/src/module') diff --git a/xmpp-vala/src/module/xep/0084_user_avatars.vala b/xmpp-vala/src/module/xep/0084_user_avatars.vala index fec46675..f9bf057f 100644 --- a/xmpp-vala/src/module/xep/0084_user_avatars.vala +++ b/xmpp-vala/src/module/xep/0084_user_avatars.vala @@ -43,8 +43,8 @@ namespace Xmpp.Xep.UserAvatars { public static void on_event_result(XmppStream stream, string jid, string id, StanzaNode node, Object? obj) { PixbufStorage? storage = obj as PixbufStorage; - StanzaNode info_node = node.get_subnode("info", NS_URI_METADATA); - if (info_node.get_attribute("type") != "image/png") return; + StanzaNode? info_node = node.get_subnode("info", NS_URI_METADATA); + if (info_node == null || info_node.get_attribute("type") != "image/png") return; if (storage.has_image(id)) { stream.get_module(Module.IDENTITY).received_avatar(stream, jid, id); } else { -- cgit v1.2.3-70-g09d2