fix parsing error in Legacy caps

This commit is contained in:
Daniel Gultsch 2023-01-19 19:47:44 +01:00
parent 09db9e574b
commit 90e613f94e
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -26,8 +26,8 @@ public class LegacyCapabilities extends Extension {
if (Strings.isNullOrEmpty(ver) || Strings.isNullOrEmpty(hash)) {
return null;
}
if (HASH_ALGORITHM.equals(hash) && BaseEncoding.base64().canDecode(hash)) {
return EntityCapabilities.EntityCapsHash.of(hash);
if (HASH_ALGORITHM.equals(hash) && BaseEncoding.base64().canDecode(ver)) {
return EntityCapabilities.EntityCapsHash.of(ver);
} else {
return null;
}