Fix possible NPE

This commit is contained in:
crschnick 2024-03-02 11:35:20 +00:00
parent f1742ce37d
commit d60fff969b

View file

@ -114,7 +114,7 @@ public interface SecretRetrievalStrategy {
public SecretQueryResult query(String prompt) {
var cmd = AppPrefs.get().passwordManagerString(key);
if (cmd == null) {
return null;
return new SecretQueryResult(null, true);
}
try (var cc = new LocalStore().control().command(cmd).start()) {