title: While retriving ArrayList from Map giving null pointer exception
body: <pre><code>CDBMap1=cdbMapping.GetListData();
  
  ArrayList&lt;String&gt; data=new ArrayList&lt;String&gt;();
  
  for (int len=0; len&lt;Subheaders.size(); len++) {
      System.out.println("len value "+len);
      String RequiredValue=requiredFields[len];
  
      data=CDBMap1.get(RequiredValue);
      FirstHeader.add(len,data.get(1));
      SecondHeader.add(len,data.get(2));
      ThirdHeader.add(len,data.get(3));
      FifthHeader.add(len,data.get(4));
      SixthHeader.add(len,data.get(5));
      SeventhHeader.add(len,data.get(6));
      EighthHeader.add(len,data.get(7));
  
      data.clear();
  }
  </code></pre>
  
  <p>I am trying to access the array list from map named CDBMap1. this map contain near about 220 key value pairs but while accessing 41th entry it is giving me null pointer exception. i checked the 41th entry in map it is fine.</p>