mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Fix NPE in browser when no editor was set
This commit is contained in:
parent
a80c22f34c
commit
f0e8385e2b
1 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ public class EditFileAction implements LeafAction {
|
|||
|
||||
@Override
|
||||
public String getName(OpenFileSystemModel model, List<BrowserEntry> entries) {
|
||||
return "Edit with " + AppPrefs.get().externalEditor().getValue().toTranslatedString();
|
||||
var e = AppPrefs.get().externalEditor().getValue();
|
||||
return "Edit with " + (e != null ? e.toTranslatedString() : "?");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue