diff --git a/pom.xml b/pom.xml
index ca856f7..52e6a8f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
4.0.0
org.purejava
keepassxc-cryptomator
- 1.2.5-SNAPSHOT
+ 1.2.5
keepassxc-cryptomator
Plug-in for Cryptomator to store vault passwords in KeePassXC
@@ -50,7 +50,7 @@
1.3.1
- 1.2.4
+ 1.2.5
33.1.0-jre
2.0.12
5.10.2
diff --git a/src/main/java/org/purejava/integrations/keychain/KeePassXCAccess.java b/src/main/java/org/purejava/integrations/keychain/KeePassXCAccess.java
index 79ba1b6..a24fc6c 100644
--- a/src/main/java/org/purejava/integrations/keychain/KeePassXCAccess.java
+++ b/src/main/java/org/purejava/integrations/keychain/KeePassXCAccess.java
@@ -30,7 +30,7 @@ public KeePassXCAccess() {
public boolean isSupported() { return proxy.connect(); }
@Override
- public boolean isLocked() { return proxy.getDatabasehash().isEmpty(); }
+ public boolean isLocked() { return proxy.isDatabaseLocked(); }
/**
* Called on every request sent to the KeePassXC back end to associate Cryptomator and KeePassXC,
@@ -52,7 +52,9 @@ private void ensureAssociation() throws KeychainAccessException {
*
* @return The database hash of the current active KeePassXC database.
*/
- public String unlock() { return proxy.getDatabasehash(true); }
+ public String unlock() {
+ return proxy.getDatabasehash(true).orElse("");
+ }
@Override
public void storePassphrase(String vault, CharSequence password) throws KeychainAccessException {