mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-01 09:40:35 +13:00
Fix NPE
This commit is contained in:
parent
27732bec35
commit
72b96e8b80
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue