https://issues.apache.org/bugzilla/show_bug.cgi?id=44671
Sebb <[EMAIL PROTECTED]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |ASSIGNED
--- Comment #3 from Sebb <[EMAIL PROTECTED]> 2008-03-25 09:02:29 PST ---
1.(In reply to comment #2)
> It doesn't work twofold.
>
> 1. When used as UDV, it gets replaced with an empty string.
OK. That works in the current code; I thought it was already in 2.3.1.
Obviously it was added later, so it will be fixed in the next release.
> 2. When used on the Test Plan level, I'm getting this exception:
Variables have not been properly initialised at this point, so it cannot work.
However, I've fixed the code so it logs an error rather than generating an NPE.
> 2008/03/25 16:43:34 ERROR - jmeter.engine.StandardJMeterEngine: Error occurred
> compiling the tree: java.lang.NullPointerException
> at
> org.apache.jmeter.functions.EvalVarFunction.execute(EvalVarFunction.java:69)
> at
> org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:128)
> at
> org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:97)
> at
> org.apache.jmeter.testelement.property.FunctionProperty.getStringValue(FunctionProperty.java:77)
> at
> org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsString(AbstractTestElement.java:208)
> at org.apache.jmeter.config.Argument.getValue(Argument.java:113)
> at
> org.apache.jmeter.config.Arguments.getArgumentsAsMap(Arguments.java:95)
> at
> org.apache.jmeter.testelement.TestPlan.getUserDefinedVariables(TestPlan.java:138)
> at org.apache.jmeter.engine.PreCompiler.addNode(PreCompiler.java:88)
> at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:955)
> at
> org.apache.jmeter.engine.StandardJMeterEngine.compileTree(StandardJMeterEngine.java:182)
> at
> org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:344)
> at java.lang.Thread.run(Unknown Source)
>
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]