runtime error: invalid memory address or nil pointer dereference 无效内存地址 空指针
runtime error: invalid memory address or nil pointer dereference
词典 键不存在
v.DeviceModelTemplate = func() *domain.DeviceModelMonitorTemplate {
t := &domain.DeviceModelMonitorTemplate{}
u := mTemplate[v.OID]
if u == nil {
r.log.Error(v.OID, utils.RuntimeInfo())
return t
}
t.DeviceModelId = u.DeviceModelId