fix NPE bug

This commit is contained in:
Looly
2022-04-02 00:42:27 +08:00
parent aaa88dad81
commit 8196941b6e
3 changed files with 16 additions and 16 deletions

View File

@@ -245,9 +245,9 @@ public class ExcelReadTest {
Assert.assertEquals("", objects.get(2));
}
@Test(expected = NullPointerException.class)
@Ignore
@Test
public void readColumnNPETest() {
// https://github.com/dromara/hutool/pull/2234
ExcelReader reader = ExcelUtil.getReader(ResourceUtil.getStream("read_row_npe.xlsx"));
reader.readColumn(0, 1);
}