Skip to content

Commit dea2e28

Browse files
committed
fix credentials not being initialised in Connection#changePublicKeys
1 parent b2714b3 commit dea2e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/keepassxc/Connection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ protected void changePublicKeys() throws IOException, KeepassProxyAccessExceptio
391391
box = new TweetNaclFast.Box(publicKey, keyPair.getSecretKey());
392392

393393
if (Optional.ofNullable(credentials).isEmpty()) {
394-
setCredentials(null);
394+
setCredentials(new Credentials());
395395
}
396396
Optional.ofNullable(credentials).orElseThrow(() -> new IllegalStateException(MISSING_CLASS)).setOwnKeypair(keyPair);
397397
Optional.ofNullable(credentials).orElseThrow(() -> new IllegalStateException(MISSING_CLASS)).setServerPublicKey(publicKey);

0 commit comments

Comments
 (0)