Guard against null presence values

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2026-07-01 18:17:48 -04:00
1 parent f02caf78cd
commit cb28614721
1 file changed
+4
@@ -463,6 +463,10 @@ class FoundationDbMessagePublisher {
if (!terminateOnQueueEmpty) {
database.runAsync(transaction -> transaction.get(presenceKey).thenAccept(presenceValue -> {
if (presenceValue == null) {
return;
}
final byte[] presenceServerId = FoundationDbMessageStore.getPresenceServerId(presenceValue);
final int presenceStreamId = FoundationDbMessageStore.getPresenceStreamId(presenceValue);