From a9fa2fe7c72279cecc916bb63cee154cdea67b54 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 03 十一月 2023 16:14:15 +0800 Subject: [PATCH] fix --- service/problem/check.go | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/service/problem/check.go b/service/problem/check.go index baa1f25..3a602c7 100644 --- a/service/problem/check.go +++ b/service/problem/check.go @@ -168,6 +168,9 @@ func (slf *PlcConfig) Check() bool { plcConfig, _ := service.NewDevicePlcService().GetDevicePlc() + if plcConfig == nil { + return false + } if plcConfig.Method == "" { return false } -- Gitblit v1.8.0