Explorar el Código

remove vaults that can no longer be read [ci skip]

Sebastian Stenzel hace 9 años
padre
commit
be7b875be7
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      main/ui/src/main/java/org/cryptomator/ui/model/Vault.java

+ 5 - 1
main/ui/src/main/java/org/cryptomator/ui/model/Vault.java

@@ -193,7 +193,11 @@ public class Vault implements Serializable, CryptoFileSystemDelegate {
 	}
 
 	public boolean isValidVaultDirectory() {
-		return cryptoFileSystemFactory.isValidVaultStructure(getNioFileSystem());
+		try {
+			return cryptoFileSystemFactory.isValidVaultStructure(getNioFileSystem());
+		} catch (UncheckedIOException e) {
+			return false;
+		}
 	}
 
 	public ObjectProperty<Boolean> unlockedProperty() {