|
|
@@ -614,7 +614,7 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
aProduct.setReserveByExcel(reserveValue);
|
|
|
|
|
|
Cell productCell = row.getCell(UploadConstant.PRODUCE_DATE);
|
|
|
- if (productCell.getCellType() == 0) {
|
|
|
+ if (productCell != null && productCell.getCellType() == 0) {
|
|
|
if (HSSFDateUtil.isCellDateFormatted(productCell)) {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
String productStr = sdf.format(productCell.getDateCellValue());
|