fix: 数据同步执行记录导出功能,会报错空指针 #4708

This commit is contained in:
taojinlong 2023-03-08 09:19:12 +08:00
parent deba4c7d4e
commit 228fd36b1d

View File

@ -80,7 +80,7 @@ public class DataSetTableTaskLogService {
row[0] = item.getName();
row[1] = item.getDatasetName();
row[2] = DateUtil.formatDateTime(new Date(item.getStartTime()));
row[3] = DateUtil.formatDateTime(new Date(item.getEndTime()));
row[3] = item.getEndTime() != null ? DateUtil.formatDateTime(new Date(item.getEndTime())) : "";
row[4] = Translator.get("I18N_TASK_LOG_" + item.getStatus().toUpperCase()) ;
return row;
}).collect(Collectors.toList());