private int verifyLastCell ( final Row row , final int stoppoint , final int sheetRightCol ) { int lastCol = sheetRightCol ; int col ; for ( col = lastCol ; col >= stoppoint ; col -- ) { Cell cell = row . getCell ( col ) ; if ( ( cell != null ) && ( cell . getCellTypeEnum ( ) != CellType . BLANK ) ) { break ; } } return col ; }
check last column . if it s blank then treat it as null cell .