mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 01:01:15 +01:00
Treat blank strings as null identity keys
This commit is contained in:
committed by
Jon Chambers
parent
7fc6b1e802
commit
b27334b0ff
@@ -49,6 +49,10 @@ public class IdentityKeyAdapter {
|
||||
throw new JsonParseException(parser, "Could not parse identity key as a base64-encoded value", e);
|
||||
}
|
||||
|
||||
if (identityKeyBytes.length == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
return new IdentityKey(identityKeyBytes);
|
||||
} catch (final InvalidKeyException e) {
|
||||
|
||||
Reference in New Issue
Block a user