mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Ignore invalid ACI/PNI in recipient table
This commit is contained in:
parent
be699cbd85
commit
d486563099
1 changed files with 2 additions and 2 deletions
|
@ -1367,8 +1367,8 @@ public class RecipientStore implements RecipientIdCreator, RecipientResolver, Re
|
|||
}
|
||||
|
||||
private RecipientAddress getRecipientAddressFromResultSet(ResultSet resultSet) throws SQLException {
|
||||
final var aci = Optional.ofNullable(resultSet.getString("aci")).map(ACI::parseOrThrow);
|
||||
final var pni = Optional.ofNullable(resultSet.getString("pni")).map(PNI::parseOrThrow);
|
||||
final var aci = Optional.ofNullable(resultSet.getString("aci")).map(ACI::parseOrNull);
|
||||
final var pni = Optional.ofNullable(resultSet.getString("pni")).map(PNI::parseOrNull);
|
||||
final var number = Optional.ofNullable(resultSet.getString("number"));
|
||||
final var username = Optional.ofNullable(resultSet.getString("username"));
|
||||
return new RecipientAddress(aci, pni, number, username);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue