mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 11:26:53 +00:00
Treat blank strings as null identity keys
This commit is contained in:
1 parent
7fc6b1e802
commit
b27334b0ff
2 files changed
+59
No files matched your search
@@ -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