Skip to content

Commit

Permalink
Fix missing null check
Browse files Browse the repository at this point in the history
  • Loading branch information
AsamK committed Apr 19, 2024
1 parent c177591 commit cef83d9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,10 @@ public void markUndiscoverablePossiblyUnregistered(final Set<String> numbers) {
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);
}
}
Expand Down

0 comments on commit cef83d9

Please sign in to comment.