Skip to content

Commit

Permalink
Handle login.html incorrect validation for PL
Browse files Browse the repository at this point in the history
  • Loading branch information
satviksr-db committed Sep 3, 2024
1 parent e00d328 commit b97e8f3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public String errorMessage() {

public static boolean isPrivateLinkRedirect(Response resp) {
return resp.getUrl().getPath().equals("/login.html")
&& resp.getUrl().getQuery().contains("error=private-link-validation-error");
&& (resp.getUrl().getQuery() != null
&& resp.getUrl().getQuery().contains("error=private-link-validation-error"));
}

static PrivateLinkValidationError createPrivateLinkValidationError(Response resp) {
Expand Down

0 comments on commit b97e8f3

Please sign in to comment.