diff --git a/appserver/web/web-core/src/main/java/org/apache/catalina/session/StandardSession.java b/appserver/web/web-core/src/main/java/org/apache/catalina/session/StandardSession.java index e1668a69e27..465e6d98ae5 100644 --- a/appserver/web/web-core/src/main/java/org/apache/catalina/session/StandardSession.java +++ b/appserver/web/web-core/src/main/java/org/apache/catalina/session/StandardSession.java @@ -1345,10 +1345,10 @@ public Map getAttributes() { @Override public Enumeration getAttributeNames() { - if (!isValid()) + if (!getIsValid()) { throw new IllegalStateException - ("getAttributeNames: " + RESOURCE_BUNDLE.getString(LogFacade.SESSION_INVALIDATED_EXCEPTION)); - + ("getAttributeNames: " + RESOURCE_BUNDLE.getString(LogFacade.SESSION_INVALIDATED_EXCEPTION)); + } return (new Enumerator<>(attributes.keySet(), true));