git » sdk » commit 37e50c4

Result might be null

author Stephen Paul Weber
2025-11-23 19:52:32 UTC
committer Stephen Paul Weber
2025-11-23 19:52:32 UTC
parent 3d7aba88c12426b997e02c41ec8da7979e3c84b4

Result might be null

borogove/Chat.hx +1 -1

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index b5c15af..70593c2 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -740,7 +740,7 @@ abstract class Chat {
 			final itemsGet = new DiscoItemsGet(jid.asString(), "http://jabber.org/protocol/commands");
 			itemsGet.onFinished(() -> {
 				final bareJid = jid.asBare();
-				resolve(itemsGet.getResult().filter(item ->
+				resolve((itemsGet.getResult() ?? []).filter(item ->
 					// Remove advertisement of commands at other JIDs for now
 					// It's a potential security/privacy issue depending on UX
 					item.jid != null && item.jid.asBare().equals(jid) && item.node != null