struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r680345 - /struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java
Date Mon, 28 Jul 2008 13:23:58 GMT
Author: niallp
Date: Mon Jul 28 06:23:57 2008
New Revision: 680345

URL: http://svn.apache.org/viewvc?rev=680345&view=rev
Log:
STR-3161 Servlet not injected into newly created action in higly concurrent env - thanks to
Bartek Wasko for the patch

Modified:
    struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java

Modified: struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java
URL: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java?rev=680345&r1=680344&r2=680345&view=diff
==============================================================================
--- struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java
(original)
+++ struts/struts1/trunk/core/src/main/java/org/apache/struts/action/RequestProcessor.java
Mon Jul 28 06:23:57 2008
@@ -293,10 +293,10 @@
             }
 
             actions.put(className, instance);
-        }
 
-        if (instance.getServlet() == null) {
-            instance.setServlet(this.servlet);
+            if (instance.getServlet() == null) {
+                instance.setServlet(this.servlet);
+            }
         }
 
         return (instance);



Mime
View raw message