value is known to be null anyway

This commit is contained in:
Sebastian Stenzel
2016-03-04 01:23:16 +01:00
parent d5b4fb4fe9
commit e57b60f04e

View File

@@ -101,7 +101,7 @@ class CryptorImpl implements Cryptor {
final ObjectMapper om = new ObjectMapper();
keyFile = om.readValue(masterkeyFileContents, KeyFile.class);
if (keyFile == null) {
throw new InvalidFormatException("Could not read masterkey file", keyFile, KeyFile.class);
throw new InvalidFormatException("Could not read masterkey file", null, KeyFile.class);
}
} catch (IOException e) {
throw new IllegalArgumentException("Unable to parse masterkeyFileContents", e);