Fix an inconsistent check for the presence/absence of "change number" arguments

This commit is contained in:
Jon Chambers 2022-07-27 09:56:08 -04:00 committed by Jon Chambers
parent dce391a248
commit d00aa1e77a
1 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@ public class ChangeNumberManager {
IncomingMessage::getDestinationDeviceId,
IncomingMessage::getDestinationRegistrationId)),
false);
} else if (!ObjectUtils.allNull(deviceSignedPreKeys, deviceMessages, pniRegistrationIds)) {
throw new IllegalArgumentException("Signed pre-keys, device messages, and registration IDs must be all null or all non-null");
} else if (!ObjectUtils.allNull(pniIdentityKey, deviceSignedPreKeys, deviceMessages, pniRegistrationIds)) {
throw new IllegalArgumentException("PNI identity key, signed pre-keys, device messages, and registration IDs must be all null or all non-null");
}
final Account updatedAccount;