title: Error in reading CSV file with null column value using spark scala
body: <p>i am trying to analyse CSV file using spark Scala but the problem is my CSV file contain column with null value also so while reading data from CSV file i am getting error as java.lang.ArrayIndexOutOfBoundException :12</p>
  
  <p>my total column in CSV file is 13 but 1 column contains null value.<a href="https://i.stack.imgur.com/zs5Ud.png" rel="nofollow noreferrer">enter image description here</a>please find below attachment of my code snippets . Thanks in advance</p>