mirror of https://github.com/apache/poi.git
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:
parent
e7cb6ef5b2
commit
857b96b2d3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue