aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/xep/0065_socks5_bytestreams.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-04-25 16:12:08 +0200
committerfiaxh <git@lightrise.org>2020-04-25 16:15:43 +0200
commitee9795d8f466706e06b2fdbc9beca2f8ecbf5d08 (patch)
tree17f4ecdf43e0fe031e220d58d0cade7b70711440 /xmpp-vala/src/module/xep/0065_socks5_bytestreams.vala
parent231df1bbbb683fa0c74f2f10743f7592e219eccd (diff)
downloaddino-ee9795d8f466706e06b2fdbc9beca2f8ecbf5d08.tar.gz
dino-ee9795d8f466706e06b2fdbc9beca2f8ecbf5d08.zip
Handle if Items/InfoResult are null
Diffstat (limited to 'xmpp-vala/src/module/xep/0065_socks5_bytestreams.vala')
-rw-r--r--xmpp-vala/src/module/xep/0065_socks5_bytestreams.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0065_socks5_bytestreams.vala b/xmpp-vala/src/module/xep/0065_socks5_bytestreams.vala
index bdc54879..fdee2411 100644
--- a/xmpp-vala/src/module/xep/0065_socks5_bytestreams.vala
+++ b/xmpp-vala/src/module/xep/0065_socks5_bytestreams.vala
@@ -35,6 +35,7 @@ public class Module : XmppStreamModule, Iq.Handler {
private async void query_availability(XmppStream stream) {
ServiceDiscovery.ItemsResult? items_result = yield stream.get_module(ServiceDiscovery.Module.IDENTITY).request_items(stream, stream.remote_name);
+ if (items_result == null) return;
foreach (Xep.ServiceDiscovery.Item item in items_result.items) {
bool has_feature = yield stream.get_module(ServiceDiscovery.Module.IDENTITY).has_entity_feature(stream, item.jid, NS_URI);