mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 05:38:04 +01:00
Fix an inconsistent check for the presence/absence of "change number" arguments
This commit is contained in:
committed by
Jon Chambers
parent
dce391a248
commit
d00aa1e77a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user