You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ge...@apache.org on 2010/04/14 22:44:54 UTC
svn commit: r934189 -
/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
Author: gerdogdu
Date: Wed Apr 14 20:44:54 2010
New Revision: 934189
URL: http://svn.apache.org/viewvc?rev=934189&view=rev
Log:
[OWB-354] WebContextService may throw NPE in tiered classloading environmemt
Modified:
openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
Modified: openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java?rev=934189&r1=934188&r2=934189&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java (original)
+++ openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java Wed Apr 14 20:44:54 2010
@@ -116,24 +116,14 @@ public class WebContextsService extends
endContext(Singleton.class, destroyObject);
requestContext.remove();
- requestContext = null;
dependentContext.remove();
- dependentContext = null;
sessionContext.remove();
- sessionContext = null;
conversationContext.remove();
- conversationContext = null;
applicationContext.remove();
- applicationContext = null;
singletonContext.remove();
- singletonContext = null;
-
+
currentApplicationContexts.clear();
- currentApplicationContexts = null;
currentSingletonContexts.clear();
- currentSingletonContexts = null;
- sessionCtxManager = null;
- conversationManager = null;
}