Skip to content

Commit

Permalink
Fix null pointer for profiles with absolute path in OAuth token URL o…
Browse files Browse the repository at this point in the history
…nly.
  • Loading branch information
dkocher committed Nov 23, 2023
1 parent 8ef758d commit 539ff33
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ protected int getOAuthPort(final Host bookmark) {
if(-1 != URI.create(bookmark.getProtocol().getOAuthTokenUrl()).getPort()) {
return URI.create(bookmark.getProtocol().getOAuthTokenUrl()).getPort();
}
if(null == URI.create(bookmark.getProtocol().getOAuthTokenUrl()).getScheme()) {
return bookmark.getPort();
}
return Scheme.valueOf(URI.create(bookmark.getProtocol().getOAuthTokenUrl()).getScheme()).getPort();
}

Expand Down

0 comments on commit 539ff33

Please sign in to comment.