aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2023-09-18 20:31:03 +0000
committerDominik Stadler <centic@apache.org>2023-09-18 20:31:03 +0000
commit857b96b2d3ec547fe2a4bc707ed6eb97bcabd2f8 (patch)
tree504498a2643843732a260731d684539ed2818029
parente7cb6ef5b28c977643d10b07602003fbadba87cd (diff)
downloadpoi-857b96b2d3ec547fe2a4bc707ed6eb97bcabd2f8.tar.gz
poi-857b96b2d3ec547fe2a4bc707ed6eb97bcabd2f8.zip
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
-rw-r--r--poi-integration/src/test/java/org/apache/poi/stress/StressMap.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java b/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java
index 12c6afe21f..31bc78dbb4 100644
--- a/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java
+++ b/poi-integration/src/test/java/org/apache/poi/stress/StressMap.java
@@ -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;