title: TypeError: Cannot call method "indexOf" of null
body: <p>I'm triying to find the records that includes "SO -" or "NS - SO" or "SO –" or "SWAT" on THE "RESUMEN" field from a CSV file to asigne a new category (in this cases would be "Call Center"). So, I used "indexOf" funtion witch worked so well. </p>
  
  <p>The problem comes when I change the data source (It is a CSV too), this gave me next error on that step: 
  "Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "indexOf" of null (script#2)"</p>
  
  <p>The objective is to assign a category by identifying the words on the source file</p>
  
  <p>My code</p>
  
  <pre><code>if (RESUMEN.indexOf("SO -")!=-1 || RESUMEN.indexOf("NS - SO")!=-1 || RESUMEN.indexOf("SO –" )!=-1 || RESUMEN.indexOf("SWAT")!=-1)
  {
  var RESULTADO = "Call Center"
  }
  else RESULTADO = ""
  </code></pre>
  
  <p>I expect to assigne call center category like I got with the first file (I did not change nothing)</p>
  
  <p>regards!</p>