Bug 62860 - JSON Extractor : Avoid NPE and noisy error message "Error processing JSON content in" when variable is not found
Summary: JSON Extractor : Avoid NPE and noisy error message "Error processing JSON con...
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.3
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: JMETER_5.1
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2018-10-29 09:22 UTC by Philippe Mouawad
Modified: 2018-10-29 09:24 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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