Created attachment 30957 [details] test plan for example 2013/10/23 15:25:13 ERROR - jmeter.threads.JMeterThread: Error while processing sampler 'Debug Sampler' : java.lang.NullPointerException at org.apache.oro.text.regex.PatternMatcherInput.<init>(Unknown Source) at org.apache.jmeter.extractor.RegexExtractor.matchStrings(RegexExtractor.java:210) at org.apache.jmeter.extractor.RegexExtractor.processMatches(RegexExtractor.java:191) at org.apache.jmeter.extractor.RegexExtractor.process(RegexExtractor.java:114) at org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread.java:742) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:452) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271) at java.lang.Thread.run(Unknown Source) I have this error when try to run attached test plan
The problem is in the Regex Extractor, which is not allowing for a missing variable. However, the test plan is wrong; the field should contain the NAME of the variable, i.e. "string" (without quotes).
Closing as it's not a bug.
(In reply to Philippe Mouawad from comment #2) > Closing as it's not a bug. This Null Pointer looks like not handle situation correctly, so from my point of view this is bug
New behaviour warn about missing variable and Default Value is used Date: Wed Oct 23 19:37:55 2013 New Revision: 1535130 URL: http://svn.apache.org/r1535130 Log: Bug 55694 - java.lang.NullPointerException if Apply to is set to a missing JMeter variable Bugzilla Id: 55694 Modified: jmeter/trunk/src/components/org/apache/jmeter/extractor/RegexExtractor.java jmeter/trunk/xdocs/changes.xml
*** Bug 55773 has been marked as a duplicate of this bug. ***
Date: Fri Nov 15 20:52:46 2013 New Revision: 1542394 URL: http://svn.apache.org/r1542394 Log: Bug 55694 - Assertions and Extractors : Avoid NullPointerException when scope is variable and variable is missing Bugzilla Id: 55694 Modified: jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java jmeter/trunk/src/components/org/apache/jmeter/assertions/XPathAssertion.java jmeter/trunk/src/components/org/apache/jmeter/extractor/HtmlExtractor.java jmeter/trunk/src/components/org/apache/jmeter/extractor/RegexExtractor.java jmeter/trunk/src/components/org/apache/jmeter/extractor/XPathExtractor.java jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3259