mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Fix correct NPE
This commit is contained in:
parent
bb1aa5c245
commit
1757684c79
2 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue