Skip to content

Commit

Permalink
fix NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta19 committed Nov 27, 2024
1 parent 6544539 commit 22af095
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ boolean shouldUseS2A() {
return false;
}

if (Strings.isNullOrEmpty(mtlsEndpoint())) {
return false;
}

// mTLS via S2A is not supported in any universe other than googleapis.com.
return mtlsEndpoint().contains(Credentials.GOOGLE_DEFAULT_UNIVERSE);
}
Expand Down

0 comments on commit 22af095

Please sign in to comment.