From 5d63919cc1b25393e013ded4d6cc84c71f159bce Mon Sep 17 00:00:00 2001 From: wanghao Date: Thu, 31 Oct 2024 16:09:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E4=BF=9D=E5=85=BB?= =?UTF-8?q?=E5=AD=90=E8=A1=A8=E7=8A=B6=E6=80=81=E4=B8=BAnull=E6=8F=90?= =?UTF-8?q?=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jingyuan_mes/entity/device/MaintainDetail.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/example/jingyuan_mes/entity/device/MaintainDetail.java b/app/src/main/java/com/example/jingyuan_mes/entity/device/MaintainDetail.java index ce4aae3..33cf281 100644 --- a/app/src/main/java/com/example/jingyuan_mes/entity/device/MaintainDetail.java +++ b/app/src/main/java/com/example/jingyuan_mes/entity/device/MaintainDetail.java @@ -64,9 +64,14 @@ public class MaintainDetail extends BaseObservable { } public String getButtonText() { - if ( maintStatus !=3) { - return "开始保养"; + try { + if ( maintStatus !=3) { + return "开始保养"; + } + }catch (Exception exception){ + return "子表maintStatus报错"; } + // return "完成保养"; return "查看保养";