From 17c8913bfc78e05f1923ee8ce4b3720f17b295e4 Mon Sep 17 00:00:00 2001 From: crschnick Date: Sat, 23 Dec 2023 19:20:32 +0000 Subject: [PATCH] Fix possible NPE [stage] --- core/src/main/java/io/xpipe/core/process/ShellControl.java | 2 +- version | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/io/xpipe/core/process/ShellControl.java b/core/src/main/java/io/xpipe/core/process/ShellControl.java index 45c7acee1..41b40a90c 100644 --- a/core/src/main/java/io/xpipe/core/process/ShellControl.java +++ b/core/src/main/java/io/xpipe/core/process/ShellControl.java @@ -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(); diff --git a/version b/version index 5cb12d09a..32821f08a 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.7.12 \ No newline at end of file +1.7.12-2 \ No newline at end of file