fixed coverity issue 72979

This commit is contained in:
Sebastian Stenzel
2016-09-15 14:07:08 +02:00
parent a15acd64c8
commit df1fd6d0b3

View File

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