Treat blank strings as null identity keys

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2023-06-09 10:08:18 -04:00
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) {