Bug 62860

Summary: JSON Extractor : Avoid NPE and noisy error message "Error processing JSON content in" when variable is not found
Product: JMeter - Now in Github Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 3.3   
Target Milestone: JMETER_5.1   
Hardware: PC   
OS: Mac OS X 10.1   

Description Philippe Mouawad 2018-10-29 09:22:13 UTC
When using JSON Extractor with "JMeter variable Name to use", if the variable is missing, then JSON Extractor will trigger a NullPointerException leading to a logging and setting of default value.
It's cleaner to test the nullity.
Comment 1 Philippe Mouawad 2018-10-29 09:24:28 UTC
Author: pmouawad
Date: Mon Oct 29 09:23:28 2018
New Revision: 1845092

URL: http://svn.apache.org/viewvc?rev=1845092&view=rev
Log:
Bug 62860 - JSON Extractor : Avoid NPE and noisy error message "Error processing JSON content in" when variable is not found
Bugzilla Id: 62860

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/extractor/json/jsonpath/JSONPostProcessor.java
    jmeter/trunk/xdocs/changes.xml


Author: pmouawad
Date: Mon Oct 29 09:23:45 2018
New Revision: 1845093

URL: http://svn.apache.org/viewvc?rev=1845093&view=rev
Log:
Bug 62860 - JSON Extractor : Avoid NPE and noisy error message "Error processing JSON content in" when variable is not found
Bugzilla Id: 62860

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/extractor/TestJSONPostProcessor.java
Comment 2 The ASF infrastructure team 2022-09-24 20:38:15 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4904