Преглед на файлове

value is known to be null anyway

Sebastian Stenzel преди 9 години
родител
ревизия
e57b60f04e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      main/filesystem-crypto/src/main/java/org/cryptomator/crypto/engine/impl/CryptorImpl.java

+ 1 - 1
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);