mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-19 22:01:12 +00:00
Fix possible NPE [stage]
This commit is contained in:
parent
ff4587aae9
commit
17c8913bfc
|
@ -28,7 +28,7 @@ public interface ShellControl extends ProcessControl {
|
|||
ShellDialect getTargetTerminalShellDialect();
|
||||
|
||||
default boolean hasLocalSystemAccess() {
|
||||
return getSystemId().equals(XPipeSystemId.getLocal());
|
||||
return getSystemId() != null && getSystemId().equals(XPipeSystemId.getLocal());
|
||||
}
|
||||
|
||||
boolean isLocal();
|
||||
|
|
Loading…
Reference in a new issue