Merge pull request #2234 from goldpumpkin/v5-dev

读取 excel 抛 NPE 错误
This commit is contained in:
Golden Looly
2022-04-02 00:38:46 +08:00
committed by GitHub
3 changed files with 13 additions and 0 deletions

View File

@@ -244,4 +244,11 @@ public class ExcelReadTest {
Assert.assertEquals("李四", objects.get(1));
Assert.assertEquals("", objects.get(2));
}
@Test(expected = NullPointerException.class)
@Ignore
public void readColumnNPETest() {
ExcelReader reader = ExcelUtil.getReader(ResourceUtil.getStream("read_row_npe.xlsx"));
reader.readColumn(0, 1);
}
}

Binary file not shown.