From 7d4224e3a5f12887a7e4df4dd14675f9895254ad Mon Sep 17 00:00:00 2001 From: "koo.taejin" Date: Thu, 3 Mar 2016 18:45:43 +0900 Subject: [PATCH] Add method, that get scatter data made of dot group . #1518 fixed bug. --- .../pinpoint/web/applicationmap/ApplicationMapBuilder.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/ApplicationMapBuilder.java b/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/ApplicationMapBuilder.java index 46ade3352030..4dbf470a4314 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/ApplicationMapBuilder.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/ApplicationMapBuilder.java @@ -137,6 +137,10 @@ public NodeHistogram createNodeHistogram(Application application) { private ServerInstanceList getServerInstanceList(final Node node, final AgentInfoService agentInfoService) { long timestamp = range.getTo(); + if (timestamp < 0) { + return new ServerInstanceList(); + } + Set agentList = agentInfoService.getAgentsByApplicationNameWithoutStatus(node.getApplication().getName(), timestamp); if (agentList.isEmpty()) { logger.warn("agentInfo not found. applicationName:{}", node.getApplication());