Skip to content

Commit

Permalink
handling scenario when getPathInfo() returns null (#412)
Browse files Browse the repository at this point in the history
Handling scenario when getPathInfo() returns null
  • Loading branch information
Jad-el-khoury authored Oct 9, 2023
1 parent b36cb85 commit 41bf66f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- jdk: '20'
distribution: zulu
experimental: true
- jdk: '21-ea'
- jdk: '21'
distribution: zulu
experimental: true
continue-on-error: ${{ matrix.experimental }}
Expand Down
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 41bf66f

Please sign in to comment.