Java POI Operate Excel error NullPointException
Solutions
row = sheet.getRow(rowIndex);
if (row == null) {
row = sheet.createRow(rowIndex);
}
A row that has not been used is null, and is created when it is null.
Java POI Operate Excel error NullPointException
Solutions
row = sheet.getRow(rowIndex);
if (row == null) {
row = sheet.createRow(rowIndex);
}
A row that has not been used is null, and is created when it is null.