소스 검색

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