Ignore null identity key.

This commit is contained in:
gram-signal
2022-08-29 13:26:49 -06:00
committed by GitHub
parent b6bf6c994c
commit cb6cc39679

View File

@@ -388,6 +388,7 @@ public class ProfileController {
private void checkFingerprintAndAdd(BatchIdentityCheckRequest.Element element,
Collection<BatchIdentityCheckResponse.Element> responseElements, MessageDigest md) {
accountsManager.getByAccountIdentifier(element.aci()).ifPresent(account -> {
if (account.getIdentityKey() == null) return;
byte[] identityKeyBytes;
try {
identityKeyBytes = Base64.getDecoder().decode(account.getIdentityKey());