title: Use of Hashmap values using loop
body: <p>I have a screen with 5 fields. I have created one excel file with 5 columns and 10 rows. I want to store the values of excel in hashmap and use each row value in fields to perform a save action. I need to use the Excel class which is under Framework to read entries. Working code:</p>
  
  <pre><code>hmCreateAdvBank=Excel.getXlsRowDataAsMap(TestFile, TestSheet, "1");
  Page.Field1.setText(hmCreateAdvBank.get("Key Value"));
  Save();
  </code></pre>
  
  <p>TestFile &amp; TestSheet are variables carrying the values of Excel file name and sheet name. </p>
  
  <p>When I use a for loop and replace the integer value with a defined variable it gives me an error like:</p>
  
  <pre><code>Stack Trace: null    
  java.lang.NullPointerException
      at core.libs.Excel.getXlsRowDataAsMap(Excel.java:786)    
  </code></pre>
  
  <p>I am new to this world so brushing up with stackoverflow and your help.</p>