Skip to content

Commit 0e32295

Browse files
committed
Fix null ENDPOINT_ENV
1 parent f10d0a1 commit 0e32295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/minekube/connect/config/ConnectConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class ConnectConfig {
5050
private static final String ENDPOINT_ENV = System.getenv("CONNECT_ENDPOINT");
5151

5252
public String getEndpoint() {
53-
if (!ENDPOINT_ENV.isEmpty()) {
53+
if (ENDPOINT_ENV != null && !ENDPOINT_ENV.isEmpty()) {
5454
return ENDPOINT_ENV;
5555
}
5656
return endpoint;

0 commit comments

Comments
 (0)