[Issue]: NullPointer when all fields are null
marioTemprano opened this issue · comments
What happened?
There is a null pointer exception when all fields in a record are null. It tries to add the samplerResult, and since the record is null results in a NullPointerException.
The jmx and schema :
issue_npe.zip
StackTrace :
java.lang.NullPointerException: null
at com.sngular.kloadgen.sampler.KafkaProducerSampler.fillSamplerResult(KafkaProducerSampler.java:206) ~[kloadgen-5.4.4.jar:?]
at com.sngular.kloadgen.sampler.KafkaProducerSampler.runTest(KafkaProducerSampler.java:147) ~[kloadgen-5.4.4.jar:?]
at org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:197) ~[ApacheJMeter_java.jar:5.5]
at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651) ~[ApacheJMeter_core.jar:5.5]
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570) ~[ApacheJMeter_core.jar:5.5]
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501) ~[ApacheJMeter_core.jar:5.5]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268) ~[ApacheJMeter_core.jar:5.5]
KloadGen Version
5.4.3
Relevant log output
No response
Have you added your JMX Testplan or a replica?
- I have added a JMX testplan
Have you added your Schema or a replica?
- I have added the Schema
Thank you for collaborating with the project by giving us feedback! In case it applies, it would be helpful if you could attach an example AVRO and an example test plan for us to reproduce the error. Cheers!