You have a semicolon after your if
, which means your if
will not work:
if(cell.getRichStringCellValue().getString () == cellContent);{
Even if this does not solve your problem, I think your while
statement may be wrong here:
while(cell.getCellType() == Cell.CELL_TYPE_STRING)
As far as I remember, there are other types of cells in the POI. Try to set a breakpoint on these lines and check if they have the correct CellType.
Yasin Okumuş
source share