We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43a48b0 + cbce44e commit e750b98Copy full SHA for e750b98
util/src/main/java/io/kubernetes/client/util/ClientBuilder.java
@@ -118,9 +118,12 @@ private static File findConfigFromEnv() {
118
}
119
120
private static File findHomeDir() {
121
- final File config = new File(System.getenv(ENV_HOME));
122
- if (config.exists()) {
123
- return config;
+ final String envHome = System.getenv(ENV_HOME);
+ if (envHome != null && envHome.length() > 0) {
+ final File config = new File(envHome);
124
+ if (config.exists()) {
125
+ return config;
126
+ }
127
128
if (System.getProperty("os.name").toLowerCase().startsWith("windows")) {
129
String homeDrive = System.getenv("HOMEDRIVE");
0 commit comments