diff --git a/main/filesystem-crypto/src/main/java/org/cryptomator/crypto/engine/impl/CryptorImpl.java b/main/filesystem-crypto/src/main/java/org/cryptomator/crypto/engine/impl/CryptorImpl.java index 30d6ff8f8..77a42e044 100644 --- a/main/filesystem-crypto/src/main/java/org/cryptomator/crypto/engine/impl/CryptorImpl.java +++ b/main/filesystem-crypto/src/main/java/org/cryptomator/crypto/engine/impl/CryptorImpl.java @@ -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);