Check v2 EncryptedFolderMetadataFile existence

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-03-27 09:53:53 +01:00 committed by Alper Öztürk
parent 5f92a4befc
commit ae5e7ea06b
1 changed files with 6 additions and 2 deletions

View File

@ -516,8 +516,12 @@ public final class EncryptionUtils {
new TypeToken<>() {
});
if ("2.0".equals(v2.getVersion()) || "2".equals(v2.getVersion())) {
return E2EVersion.V2_0;
if (v2 != null) {
if ("2.0".equals(v2.getVersion()) || "2".equals(v2.getVersion())) {
return E2EVersion.V2_0;
}
} else {
return E2EVersion.UNKNOWN;
}
}