Skip setting WELD_S_HASH session attribute if bean index is empty
@@ -103,10 +103,13 @@ public class HttpSessionContextImpl extends AbstractBoundContext<HttpServletRequ
throw ContextLogger.LOG.beanIdentifierIndexInconsistencyDetected(hash.toString(), index.getDebugInfo());
}
} else {
+ // Skip if bean index is empty
+ if (!index.isEmpty()) {
session.setAttribute(KEY_BEAN_ID_INDEX_HASH, index.getIndexHash());
}
}
}
}
+ }
}
