Fix missing null check

This commit is contained in:
AsamK 2024-04-19 17:07:29 +02:00
parent c1775913b9
commit cef83d962c

View file

@ -917,7 +917,10 @@ public class RecipientStore implements RecipientIdCreator, RecipientResolver, Re
final var recipientId = recipientAddress.get().id();
markDiscoverable(connection, recipientId, false);
final var contact = getContact(connection, recipientId);
if (recipientAddress.get().address().aci().isEmpty() || contact.unregisteredTimestamp() != null) {
if (recipientAddress.get().address().aci().isEmpty() || (
contact != null
&& contact.unregisteredTimestamp() != null
)) {
markUnregisteredAndSplitIfNecessary(connection, recipientId);
}
}