jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1240580 - /jmeter/trunk/src/components/org/apache/jmeter/extractor/BSFPostProcessor.java
Date Sat, 04 Feb 2012 18:33:16 GMT
Author: pmouawad
Date: Sat Feb  4 18:33:13 2012
New Revision: 1240580

URL: http://svn.apache.org/viewvc?rev=1240580&view=rev
Log:
Ensure terminate is called

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/extractor/BSFPostProcessor.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/extractor/BSFPostProcessor.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/extractor/BSFPostProcessor.java?rev=1240580&r1=1240579&r2=1240580&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/extractor/BSFPostProcessor.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/extractor/BSFPostProcessor.java Sat Feb
 4 18:33:13 2012
@@ -33,12 +33,16 @@ public class BSFPostProcessor extends BS
     private static final long serialVersionUID = 232L;
 
     public void process(){
+        BSFManager mgr =null;
         try {
-            BSFManager mgr = getManager();
+            mgr = getManager();
             processFileOrScript(mgr);
-            mgr.terminate();
         } catch (BSFException e) {
             log.warn("Problem in BSF script "+e);
+        } finally {
+            if (mgr != null) {
+                mgr.terminate();
+            }
         }
     }
 }



Mime
View raw message