Skip to content

Commit

Permalink
handling scenario when getPathInfo() returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
Jad-el-khoury committed Oct 5, 2023
1 parent b36cb85 commit 504c7e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ protected String getServletUri() {
* @return true - the resource is protected, otherwise false
*/
protected boolean isProtectedResource(HttpServletRequest request) {
return !request.getPathInfo().startsWith("/oauth");
return (null != request.getPathInfo()) &&
!request.getPathInfo().startsWith("/oauth");
}


/**
* set Connector for this session
*
Expand Down

0 comments on commit 504c7e5

Please sign in to comment.