diff --git a/spring-session/src/main/java/org/springframework/session/web/http/SessionRepositoryFilter.java b/spring-session/src/main/java/org/springframework/session/web/http/SessionRepositoryFilter.java index 4bb6de6a..182500af 100644 --- a/spring-session/src/main/java/org/springframework/session/web/http/SessionRepositoryFilter.java +++ b/spring-session/src/main/java/org/springframework/session/web/http/SessionRepositoryFilter.java @@ -77,7 +77,7 @@ public class SessionRepositoryFilter extends OncePerR */ public SessionRepositoryFilter(SessionRepository sessionRepository) { if(sessionRepository == null) { - throw new IllegalArgumentException("SessionRepository cannot be null"); + throw new IllegalArgumentException("sessionRepository cannot be null"); } this.sessionRepository = sessionRepository; } @@ -88,8 +88,8 @@ public class SessionRepositoryFilter extends OncePerR * @param httpSessionStrategy the {@link HttpSessionStrategy} to use. Cannot be null. */ public void setHttpSessionStrategy(HttpSessionStrategy httpSessionStrategy) { - if(sessionRepository == null) { - throw new IllegalArgumentException("httpSessionIdStrategy cannot be null"); + if(httpSessionStrategy == null) { + throw new IllegalArgumentException("httpSessionStrategy cannot be null"); } this.httpSessionStrategy = new MultiHttpSessionStrategyAdapter(httpSessionStrategy); } @@ -100,8 +100,8 @@ public class SessionRepositoryFilter extends OncePerR * @param httpSessionStrategy the {@link MultiHttpSessionStrategy} to use. Cannot be null. */ public void setHttpSessionStrategy(MultiHttpSessionStrategy httpSessionStrategy) { - if(sessionRepository == null) { - throw new IllegalArgumentException("httpSessionIdStrategy cannot be null"); + if(httpSessionStrategy == null) { + throw new IllegalArgumentException("httpSessionStrategy cannot be null"); } this.httpSessionStrategy = httpSessionStrategy; }