struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pbened...@apache.org
Subject svn commit: r727914 - /struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/ComposableRequestProcessor.java
Date Fri, 19 Dec 2008 04:04:26 GMT
Author: pbenedict
Date: Thu Dec 18 20:04:25 2008
New Revision: 727914

URL: http://svn.apache.org/viewvc?rev=727914&view=rev
Log:
STR-3174: Release context after execution

Modified:
    struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/ComposableRequestProcessor.java

Modified: struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/ComposableRequestProcessor.java
URL: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/ComposableRequestProcessor.java?rev=727914&r1=727913&r2=727914&view=diff
==============================================================================
--- struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/ComposableRequestProcessor.java
(original)
+++ struts/struts1/trunk/core/src/main/java/org/apache/struts/chain/ComposableRequestProcessor.java
Thu Dec 18 20:04:25 2008
@@ -284,10 +284,12 @@
         } catch (Exception e) {
             // Execute the exception processing chain??
             throw new ServletException(e);
+        } finally {
+            // Release the context.
+            if (context != null) {
+                context.release();
+            }
         }
-
-        // Release the context.
-        context.release();
     }
 
     /**



Mime
View raw message