Bug 52221

Summary: Nullpointer Exception with use Retrieve Embedded Resource without HTTP Cache Manager
Product: JMeter - Now in Github Reporter: Julian Cesar <juliancesar>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: regression CC: juliancesar
Priority: P2    
Version: Nightly (Please specify date)   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: JMX to reproduce the exception

Description Julian Cesar 2011-11-21 13:31:32 UTC
Created attachment 27972 [details]
JMX to reproduce the exception

The behavior Retrieve All Embedded Resources From HTML Files only work if the component HTTP Cache Manager is enabled.

The JMX with this problem is attached in the bug and the revision is r1204392.

Exception: 

java.lang.NullPointerException
	at org.apache.jmeter.testelement.property.TestElementProperty.iterator(TestElementProperty.java:160)
	at org.apache.jmeter.testelement.AbstractTestElement.setTemporary(AbstractTestElement.java:468)
	at org.apache.jmeter.testelement.AbstractTestElement.addProperty(AbstractTestElement.java:270)
	at org.apache.jmeter.testelement.AbstractTestElement.addProperty(AbstractTestElement.java:288)
	at org.apache.jmeter.testelement.AbstractTestElement.setProperty(AbstractTestElement.java:316)
	at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.setCacheManager(HTTPSamplerBase.java:775)
Comment 1 Sebb 2011-11-21 13:54:59 UTC
Thanks for the report; it's very useful to have such reports on nightly builds.

Fixed in SVN:

URL: http://svn.apache.org/viewvc?rev=1204496&view=rev
Log:
Bug 52221 - Nullpointer Exception with use Retrieve Embedded Resource without HTTP Cache Manager

Modified:
   jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
   jmeter/trunk/xdocs/changes.xml
Comment 2 The ASF infrastructure team 2022-09-24 20:37:48 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2656