Coverity 72979

This commit is contained in:
Sebastian Stenzel
2016-03-04 17:50:07 +01:00
parent b37b2e4fb7
commit d845e8d97a

View File

@@ -109,7 +109,7 @@ class CryptorImpl implements Cryptor {
assert keyFile != null;
// check version
if (keyFile.getVersion() != CURRENT_VAULT_VERSION || ArrayUtils.isEmpty(keyFile.getVersionMac())) {
if (!CURRENT_VAULT_VERSION.equals(keyFile.getVersion()) || ArrayUtils.isEmpty(keyFile.getVersionMac())) {
throw new UnsupportedVaultFormatException(keyFile.getVersion(), CURRENT_VAULT_VERSION);
}