diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index 01b8af27f3..7ae31d1ea3 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -542,10 +542,14 @@ public class TestPlanService { String eTime = String.valueOf(endTime); if (!sTime.equals("null")) { start = sdf.format(new Date(Long.parseLong(sTime))); + } else { + start = ""; } String end = null; if (!eTime.equals("null")) { end = sdf.format(new Date(Long.parseLong(eTime))); + } else { + end = ""; } String context = ""; if (StringUtils.equals(NoticeConstants.CREATE, type)) {