title: Null pointer exception in Jmeter report generation in Jenkins pipeline
body: <p>I am running jmeter test in non-gui mode in Jenkins pipeline.</p>
  <p>Below are ther versions:</p>
  <pre><code>Jenkins agent java vaerion : 11
  Jmeter version : 5.3
  </code></pre>
  <p>The command I run in Jenkins</p>
  <pre><code>/home/jenkins/jmeter/apache-jmeter-5.1/bin/jmeter.sh -f -n -t jmeter_scripts/Suite_master.jmx -l output.jtl -j jmeter.log -p project.properties -e -o results
  </code></pre>
  <p>However I see below failure while generating the HTML result file</p>
  <pre><code>2022-04-29 02:05:29,397 INFO o.a.j.r.p.CsvFileSampleSource: produce(): 1086 samples produced in 66ms on channel 0
  2022-04-29 02:05:29,397 INFO o.a.j.r.d.ReportGenerator: Exporting data using exporter:'json' of className:'org.apache.jmeter.report.dashboard.JsonExporter'
  2022-04-29 02:05:29,399 INFO o.a.j.r.d.JsonExporter: Found data for consumer statisticsSummary in context
  2022-04-29 02:05:29,399 INFO o.a.j.r.d.JsonExporter: Creating statistics for overall
  2022-04-29 02:05:29,399 ERROR o.a.j.JMeter: Error generating the report
  java.lang.NullPointerException: null
      at org.apache.jmeter.report.dashboard.JsonExporter.createStatistic(JsonExporter.java:121) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
      at org.apache.jmeter.report.dashboard.JsonExporter.export(JsonExporter.java:71) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
      at org.apache.jmeter.report.dashboard.ReportGenerator.exportData(ReportGenerator.java:381) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
      at org.apache.jmeter.report.dashboard.ReportGenerator.generate(ReportGenerator.java:262) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
      at org.apache.jmeter.JMeter$ListenToTest.generateReport(JMeter.java:1324) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
      at org.apache.jmeter.JMeter$ListenToTest.testEnded(JMeter.java:1261) [ApacheJMeter_core.jar:5.1.1 r1855137]
      at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfEnd(StandardJMeterEngine.java:218) [ApacheJMeter_core.jar:5.1.1 r1855137]
      at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:492) [ApacheJMeter_core.jar:5.1.1 r1855137]
      at java.lang.Thread.run(Unknown Source) [?:?]
  [Pipeline] sh
  </code></pre>
  <p>BTW I can see jtl file with data as well</p>
  <pre><code>-rw-r--r--. 1 jenkins jenkins 273418 Apr 29 02:05 output.jtl
  </code></pre>