title: JMeter 5 - Failed to replace text
body: <p>I'm trying to use JMeter 5.0 <a href="http://jmeter.apache.org/changes.html" rel="nofollow noreferrer">replace feature</a></p>
  <blockquote>
  <p>Search feature has been improved to allow you to iterate in the tree over search results and do necessary replacements through Next/Previous/Replace/Replace/Find buttons</p>
  </blockquote>
  <p>I can search and find occurrences and find text, but I can't replace it using Replace/Replace All/Replace &amp; Find</p>
  <p>Replace All report as <code>Replaced 0 occurrences</code></p>
  <p>Replace or Replace &amp; Find returns error:</p>
  <pre><code>2018-09-26 10:23:49,276 ERROR o.a.j.JMeter: Uncaught exception: 
  java.lang.ArrayIndexOutOfBoundsException: null
  </code></pre>
  <p>Example trying to replace text:</p>
  <p><img src="https://i.imgur.com/lDm07lO.png" alt="" /></p>
  <p>How should I use the replace feature?</p>