From a314e90509dba1124ce95a837972560b92d7231a Mon Sep 17 00:00:00 2001 From: emeroad Date: Fri, 7 Jun 2024 18:26:07 +0900 Subject: [PATCH] [#11050] Fix potential NPE --- .../appender/server/DefaultServerInfoAppender.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/appender/server/DefaultServerInfoAppender.java b/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/appender/server/DefaultServerInfoAppender.java index dce7530e6a7e..1603957907d5 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/appender/server/DefaultServerInfoAppender.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/applicationmap/appender/server/DefaultServerInfoAppender.java @@ -144,6 +144,9 @@ private void bind(List serverGroupRequest) { CompletableFuture future = pair.future(); try { ServerGroupList serverGroupList = future.getNow(null); + if (serverGroupList == null) { + serverGroupList = serverGroupListFactory.createEmptyNodeInstanceList(); + } node.setServerGroupList(serverGroupList); } catch (Throwable th) { logger.warn("Failed to get server info for node {}", node);