title: Array Index out of bounds when reading from CSV file
body: <p>I'm trying to read a CSV file using a <code>BufferedReader</code>, but for some reason I get an out of bounds exception after 7 rows. I tried this exact algo on another CSV file (30 rows) and it worked fine. <a href="http://www.filedropper.com/database-spells" rel="nofollow noreferrer">Here</a> is the CSV file in question.</p>
  
  <pre><code>    String spellPath = "file path is here";
  
      FileReader y = new FileReader(spellPath);
      BufferedReader x = new BufferedReader(y);
      ArrayList&lt;Card&gt; ArrayList = new ArrayList&lt;Card&gt;( );   //dynamic data type
  
      for( String p = x.readLine(); p != null ; p = x.readLine()){
  
          String [] stArray = p.split(",");
          ArrayList.add(new Card( stArray[1], stArray[2])); //new card with name and desc only
  
      }
  
      System.out.println(ArrayList.toString());
  </code></pre>
  
  <p>Is the problem with the file or is it with the algorithm?</p>