Skip to content

Commit

Permalink
Merge pull request #12931 from stuartwdouglas/fix-npe
Browse files Browse the repository at this point in the history
If no password set don't attempt to connect
  • Loading branch information
gsmet committed Oct 26, 2020
2 parents 44452a6 + af5749a commit 0f37255
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public Optional<RemoteDevClient> getClient() {
if (!liveReloadConfig.password.isPresent()) {
log.warn(
"Live reload URL set but no password, remote dev requires a password, set quarkus.live-reload.password on both server and client");
return Optional.empty();
}
return Optional.of(new HttpRemoteDevClient(liveReloadConfig.url.get(), liveReloadConfig.password.get()));
}
Expand Down

0 comments on commit 0f37255

Please sign in to comment.