提交 86ff8307 编写于 作者: wu-sheng's avatar wu-sheng

Merge commit '9275eeaa' into 5.x

......@@ -66,7 +66,7 @@ public class InstanceMetricAlarmAssertWorker extends AlarmAssertWorker<InstanceM
Instance instance = instanceDAO.getInstance(alarm.getInstanceId());
JsonObject osInfo = gson.fromJson(instance.getOsInfo(), JsonObject.class);
String serverName = Const.UNKNOWN;
if (osInfo.has("hostName")) {
if (osInfo != null && osInfo.has("hostName")) {
serverName = osInfo.get("hostName").getAsString();
}
......
......@@ -39,4 +39,4 @@ if any entity(company or organization) has any doubt, please contact us by [any
- Weier. 广州文尔软件科技有限公司. https://www.site0.cn
- Xiaomi. 小米. https://www.mi.com/en/
- Yinji(shenzhen)Network Technology Co.,Ltd. 印记. http://www.yinjiyun.cn/
The list is in alphabeta order.
The list is in alphabet order.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册