I am getting a cell from excel sheet and then I have to set its value.
XSSFSheet sheet = workbook.getSheetAt(0);
XSSFCell resultCell=null;
if( sheet.getRow(1).getCell('A')==null)
{ sheet.getRow(1).getCell('A').setCellValue("heh");}
But this gives a null pointer exception.