You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2018/09/27 13:12:57 UTC

[incubator-skywalking] branch master updated: Avoid query error by adding initial instance to AlarmTrend (#1713)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git


The following commit(s) were added to refs/heads/master by this push:
     new f162fcc  Avoid query error by adding initial instance to AlarmTrend (#1713)
f162fcc is described below

commit f162fccf8b148954dba870b01a4b4de93e4592c7
Author: Gao Hongtao <ha...@gmail.com>
AuthorDate: Thu Sep 27 21:12:50 2018 +0800

    Avoid query error by adding initial instance to AlarmTrend (#1713)
---
 .../java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java b/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java
index fcfae74..a64d10f 100644
--- a/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java
+++ b/oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/type/AlarmTrend.java
@@ -18,8 +18,9 @@
 
 package org.apache.skywalking.oap.query.graphql.type;
 
+import java.util.ArrayList;
 import java.util.List;
 
 public class AlarmTrend {
-    private List<Integer> numOfAlarm;
+    private List<Integer> numOfAlarm = new ArrayList<>();
 }