Skip to content

Commit

Permalink
Issue #9046 Fix tck session invalidate test (#9047)
Browse files Browse the repository at this point in the history
  • Loading branch information
janbartel authored Dec 13, 2022
1 parent e16b794 commit f139b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ public boolean isRequestedSessionIdValid()
if (getRequestedSessionId() == null || _coreSession == null)
return false;
//check requestedId (which may have worker suffix) against the actual session id
return getSessionManager().getSessionIdManager().getId(getRequestedSessionId()).equals(_coreSession.getId());
return _coreSession.isValid() && getSessionManager().getSessionIdManager().getId(getRequestedSessionId()).equals(_coreSession.getId());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ public boolean isRequestedSessionIdValid()
if (getRequestedSessionId() == null || _coreSession == null)
return false;

return (_sessionManager.getSessionIdManager().getId(getRequestedSessionId()).equals(_coreSession.getId()));
return (_coreSession.isValid() && _sessionManager.getSessionIdManager().getId(getRequestedSessionId()).equals(_coreSession.getId()));
}

@Override
Expand Down

0 comments on commit f139b66

Please sign in to comment.