From 68d8e184fd87fdb1eeae3eb82af32ee07b735157 Mon Sep 17 00:00:00 2001 From: kosyak Date: Mon, 30 Oct 2023 21:32:14 +0100 Subject: [PATCH] fix crash during refresh feature discovery --- .../eu/siacs/conversations/services/XmppConnectionService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 0c86c67a5..99bf83a83 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -4880,6 +4880,7 @@ public class XmppConnectionService extends Service { if (result != null) { return result; } else { + if (key.first == null || key.second == null) return null; result = databaseBackend.findDiscoveryResult(key.first, key.second); if (result != null) { discoCache.put(key, result);