mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Fix possible NPE
This commit is contained in:
parent
f1742ce37d
commit
d60fff969b
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ public interface SecretRetrievalStrategy {
|
||||||
public SecretQueryResult query(String prompt) {
|
public SecretQueryResult query(String prompt) {
|
||||||
var cmd = AppPrefs.get().passwordManagerString(key);
|
var cmd = AppPrefs.get().passwordManagerString(key);
|
||||||
if (cmd == null) {
|
if (cmd == null) {
|
||||||
return null;
|
return new SecretQueryResult(null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
try (var cc = new LocalStore().control().command(cmd).start()) {
|
try (var cc = new LocalStore().control().command(cmd).start()) {
|
||||||
|
|
Loading…
Reference in a new issue