From a175eed405f1e4e7da36cc548af998f0fcbf6688 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期五, 27 六月 2025 09:09:48 +0800 Subject: [PATCH] 修复1.2.4bug --- src/main/java/com/whyc/service/BatttestdataInfService.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/whyc/service/BatttestdataInfService.java b/src/main/java/com/whyc/service/BatttestdataInfService.java index 2d40379..76f1cf5 100644 --- a/src/main/java/com/whyc/service/BatttestdataInfService.java +++ b/src/main/java/com/whyc/service/BatttestdataInfService.java @@ -124,7 +124,9 @@ wrapper.last(" ORDER BY test_starttime DESC "); wrapper.last("limit 1"); BatttestdataInf tinf = mapper.selectOne(wrapper); - tinf.setTestStoptypeReason(StopReasonEnum.getValue(tinf.getTestStoptype())); + if(tinf!=null){ + tinf.setTestStoptypeReason(StopReasonEnum.getValue(tinf.getTestStoptype())); + } return tinf; } -- Gitblit v1.9.1