From fc9feed538a8260c37a291ea52a1191ee0aa77aa Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 5 Mar 2014 08:20:36 -0500 Subject: [PATCH] Remove Dagger injector from the servlet context instead of nulling it --- src/main/java/com/gitblit/dagger/DaggerContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gitblit/dagger/DaggerContext.java b/src/main/java/com/gitblit/dagger/DaggerContext.java index 28ee25d3..0e6a3fc4 100644 --- a/src/main/java/com/gitblit/dagger/DaggerContext.java +++ b/src/main/java/com/gitblit/dagger/DaggerContext.java @@ -61,7 +61,7 @@ public abstract class DaggerContext implements ServletContextListener { @Override public final void contextDestroyed(ServletContextEvent contextEvent) { ServletContext context = contextEvent.getServletContext(); - context.setAttribute(INJECTOR_NAME, null); + context.removeAttribute(INJECTOR_NAME); destroyContext(context); } } -- 2.39.5