mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-30 00:21:01 +00:00
Fix correct NPE
This commit is contained in:
@@ -104,6 +104,10 @@ public class FileSystemHelper {
|
||||
return;
|
||||
}
|
||||
|
||||
if (model.getFileSystem() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
var shell = model.getFileSystem().getShell();
|
||||
if (shell.isEmpty()) {
|
||||
return;
|
||||
|
||||
@@ -162,7 +162,7 @@ public final class OpenFileSystemModel {
|
||||
fileSystem
|
||||
.getShell()
|
||||
.get()
|
||||
.subShell(processControl -> adjustedPath, (sc) -> adjustedPath)
|
||||
.subShell(adjustedPath)
|
||||
.withInitSnippet(new SimpleScriptSnippet(
|
||||
fileSystem
|
||||
.getShell()
|
||||
|
||||
Reference in New Issue
Block a user