mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Fix NPEs
This commit is contained in:
parent
568d1c2e6f
commit
e5c2079264
2 changed files with 5 additions and 1 deletions
|
@ -65,6 +65,10 @@ public class BrowserQuickAccessContextMenu extends ContextMenu {
|
|||
getItems().clear();
|
||||
ThreadHelper.runFailableAsync(() -> {
|
||||
var entry = base.get();
|
||||
if (entry == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (entry.getRawFileEntry().resolved().getKind() != FileKind.DIRECTORY) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ public class EditFileAction implements LeafAction {
|
|||
@Override
|
||||
public ObservableValue<String> getName(OpenFileSystemModel model, List<BrowserEntry> entries) {
|
||||
var e = AppPrefs.get().externalEditor().getValue();
|
||||
return AppI18n.observable("editWithEditor", e.toTranslatedString().getValue());
|
||||
return AppI18n.observable("editWithEditor", e != null ? e.toTranslatedString().getValue() : "?");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue