Skip to content

Commit

Permalink
Test without scratchpad: Do not fail reading data for integrationtests
Browse files Browse the repository at this point in the history
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
  • Loading branch information
centic9 committed Sep 18, 2023
1 parent e7cb6ef commit 857b96b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void readExMap(Sheet sh) {
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;
Expand Down

0 comments on commit 857b96b

Please sign in to comment.