Fix correct NPE

This commit is contained in:
crschnick 2023-12-30 02:18:02 +00:00
parent bb1aa5c245
commit 1757684c79
2 changed files with 5 additions and 1 deletions

View file

@ -104,6 +104,10 @@ public class FileSystemHelper {
return;
}
if (model.getFileSystem() == null) {
return;
}
var shell = model.getFileSystem().getShell();
if (shell.isEmpty()) {
return;

View file

@ -162,7 +162,7 @@ public final class OpenFileSystemModel {
fileSystem
.getShell()
.get()
.subShell(processControl -> adjustedPath, (sc) -> adjustedPath)
.subShell(adjustedPath)
.withInitSnippet(new SimpleScriptSnippet(
fileSystem
.getShell()