From 72b96e8b80f55254cd25c17870c15a46960a296d Mon Sep 17 00:00:00 2001 From: Christopher Schnick Date: Tue, 27 Dec 2022 11:16:53 +0100 Subject: [PATCH] Fix NPE --- core/src/main/java/io/xpipe/core/util/XPipeInstallation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/io/xpipe/core/util/XPipeInstallation.java b/core/src/main/java/io/xpipe/core/util/XPipeInstallation.java index 470849d9..35872b67 100644 --- a/core/src/main/java/io/xpipe/core/util/XPipeInstallation.java +++ b/core/src/main/java/io/xpipe/core/util/XPipeInstallation.java @@ -66,7 +66,7 @@ public class XPipeInstallation { public static String getLocalDefaultInstallationBasePath(boolean acceptCustomHome) { var customHome = System.getenv("XPIPE_HOME"); - if (!customHome.isEmpty() && acceptCustomHome) { + if (customHome != null && !customHome.isEmpty() && acceptCustomHome) { return customHome; }