Skip to content

Commit 78237d0

Browse files
committed
chore: add back null check
Signed-off-by: Chao Wang <[email protected]>
1 parent 558efed commit 78237d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jboss/tools/intellij/exhort/ApiService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public static Optional<String> getProxyUrl() {
244244
String host = staticProxyConfiguration.getHost();
245245
int port = staticProxyConfiguration.getPort();
246246

247-
if (!host.isBlank() && port > 0 && protocol.equals("http")) {
247+
if (host != null && !host.isBlank() && port > 0 && protocol.equals("http")) {
248248
String proxyUrl = protocol + "://" + host.trim() + ":" + port;
249249
return Optional.of(proxyUrl);
250250
}

0 commit comments

Comments
 (0)