Test without scratchpad: Do not fail reading data for integrationtests

It seems the XLS now has missing cells which cause an NPE
while checking for scratchpad-handlers

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912407 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2023-09-18 20:31:03 +00:00
parent e7cb6ef5b2
commit 857b96b2d3
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ public class StressMap {
Row row = iter.next();
if (SCRATCH_IGNORE && handlerIdx > -1) {
String handler = row.getCell(handlerIdx).getStringCellValue();
String handler = row.getCell(handlerIdx) == null ? "" : row.getCell(handlerIdx).getStringCellValue();
if (SCRATCH_HANDLER.matcher(handler).find()) {
// ignore exception of ignored files
continue;