You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2004/09/24 01:07:38 UTC

cvs commit: jakarta-jmeter/src/functions/org/apache/jmeter/functions BeanShell.java

sebb        2004/09/23 16:07:37

  Modified:    src/functions/org/apache/jmeter/functions Tag: rel-2_0
                        BeanShell.java
  Log:
  Handle missing BeanShell better
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.1   +7 -2      jakarta-jmeter/src/functions/org/apache/jmeter/functions/BeanShell.java
  
  Index: BeanShell.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/functions/org/apache/jmeter/functions/BeanShell.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- BeanShell.java	30 Mar 2004 18:07:07 -0000	1.3
  +++ BeanShell.java	23 Sep 2004 23:07:37 -0000	1.3.2.1
  @@ -75,6 +75,11 @@
           throws InvalidVariableException
       {
   
  +    	if (setObj == null) // did we find BeanShell?
  +    	{
  +    		throw new InvalidVariableException("BeanShell not found");
  +    	}
  +    	
           JMeterVariables vars = getVariables();
   
           String script  = ((CompoundVariable) values[0]).execute();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org