Parse Excel by poi and target cell is empty sometimes parse ok sometimes throw nullpointexception
问题 I found a strange phenomenon of parse excel by poi. See code goods.subtitle = row.getCell(headerNameIndexMap.get("subtitle")).getStringCellValue(); parse subtitle column and set value to object. There are two excel, both subtitle column is empty, but parse one of them is ok, just subtitle property is null, but when parse another excel, it throws exception: java.lang.NullPointerException After copying some same name column from success excel to fail excel, before parse failed column could