Resolve a warning about potentially-null results from a Flux#toList call

This commit is contained in:
Jon Chambers authored and Chris Eager committed 2026-01-14 09:36:53 -06:00
1 parent 14e7652339
commit 55010cc0e5
1 file changed
+3 -1
@@ -38,6 +38,7 @@ import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.time.Clock;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
@@ -384,7 +385,8 @@ public class KeysController {
devicePreKeys.ecPreKey().orElse(null),
devicePreKeys.kemSignedPreKey())))
.collectList()
.block();
.blockOptional()
.orElseGet(Collections::emptyList);
final IdentityKey identityKey = target.getIdentityKey(targetIdentifier.identityType());