Commit 46e05396 authored by 刘林's avatar 刘林

fix(Statistics):设备详情报错

parent c58117d6
......@@ -600,7 +600,7 @@ public class DPSubServiceImpl {
if (ValidationUtil.isEmpty(str)){
yObj.put("thumb", yObj.getString("url"));
} else {
String icon = MatinfoEnum.getIconUrl(str[1]).getIcon();
String icon = Objects.requireNonNull(MatinfoEnum.getIconUrl(str[1])).getIcon();
yObj.put("thumb", ValidationUtil.isEmpty(icon) ? yObj.getString("url") : icon);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment