apache / apache/jmeter

Assigning null to a BeanShell variable in a JSR223 sampler does not work as expected

Open
#3,411 5 comments 0 reactions 0 assignees View on GitHub
os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**Bernhard** ([Bug 56816](https://bz.apache.org/bugzilla//show_bug.cgi?id=56816&redirect=false)):
vars.get() returns void in a java script if the variable is not existing instead of null (as described in it's documentation http://jmeter.apache.org/api/org/apache/jmeter/threads/JMeterVariables.html#get%28java.lang.String%29 )

This will lead to confusion and bugs if the user doesn't know this.

Severity: major
OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.