This is an automated email from the ASF dual-hosted git repository. fpapon pushed a commit to branch 1.9.x in repository https://gitbox.apache.org/repos/asf/shiro.git
commit 800c0d121abe1e7a87f3ab57aacbedfce0430033 Author: zeroflag <[email protected]> AuthorDate: Thu Nov 4 12:19:49 2021 +0100 SHIRO-841 - NullPointerException from SessionsSecurityManager.start() --- core/src/main/java/org/apache/shiro/mgt/SessionsSecurityManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/org/apache/shiro/mgt/SessionsSecurityManager.java b/core/src/main/java/org/apache/shiro/mgt/SessionsSecurityManager.java index eb00b56..db37215 100644 --- a/core/src/main/java/org/apache/shiro/mgt/SessionsSecurityManager.java +++ b/core/src/main/java/org/apache/shiro/mgt/SessionsSecurityManager.java @@ -149,6 +149,9 @@ public abstract class SessionsSecurityManager extends AuthorizingSecurityManager } public Session start(SessionContext context) throws AuthorizationException { + if (sessionManager == null) { + throw new IllegalStateException("Session manager is destroyed"); + } return this.sessionManager.start(context); }
