diff options
author | Marvin W <git@larma.de> | 2017-03-20 19:27:39 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-03-23 16:48:26 +0100 |
commit | ef0483765a0fd567f25b1f0af6df04e8973e5624 (patch) | |
tree | 9288c239217496774710542b922cdd264e0838cc /xmpp-vala/src | |
parent | aca6842c490c52b6460b7d9ebd7cc77eec4b97ef (diff) | |
download | dino-ef0483765a0fd567f25b1f0af6df04e8973e5624.tar.gz dino-ef0483765a0fd567f25b1f0af6df04e8973e5624.zip |
Small bug fixes and compatibility with Vala 0.36
Diffstat (limited to 'xmpp-vala/src')
-rw-r--r-- | xmpp-vala/src/module/xep/0084_user_avatars.vala | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |