소스 검색

fixes coverity issue 147409

Sebastian Stenzel 8 년 전
부모
커밋
ef0425e2b1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      main/ui/src/main/java/org/cryptomator/ui/model/Vault.java

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

@@ -168,7 +168,7 @@ public class Vault implements CryptoFileSystemDelegate {
 		);
 	}
 
-	public void reveal() throws CommandFailedException {
+	public synchronized void reveal() throws CommandFailedException {
 		Optionals.ifPresent(filesystemFrontend.get(), Frontend::reveal);
 	}
 
@@ -190,7 +190,7 @@ public class Vault implements CryptoFileSystemDelegate {
 	// Getter/Setter
 	// *******************************************************************************/
 
-	public String getWebDavUrl() {
+	public synchronized String getWebDavUrl() {
 		return filesystemFrontend.get().map(Frontend::getWebDavUrl).orElseThrow(IllegalStateException::new);
 	}