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 2020/07/01 08:17:53 UTC

[skywalking] 01/01: Fix wrong validation.

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

wusheng pushed a commit to branch endpoint-rela-id-bug
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit 40aec24ca48ce88e5c2b4496fb14c40bb91cea16
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Wed Jul 1 16:17:24 2020 +0800

    Fix wrong validation.
---
 .../java/org/apache/skywalking/oap/server/core/query/input/Entity.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/input/Entity.java b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/input/Entity.java
index 117e2d3..8909fb0 100644
--- a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/input/Entity.java
+++ b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/input/Entity.java
@@ -90,7 +90,7 @@ public class Entity {
                     && Objects.nonNull(normal) && Objects.nonNull(destNormal);
             case EndpointRelation:
                 return Objects.nonNull(serviceName) && Objects.nonNull(endpointName)
-                    && Objects.nonNull(serviceInstanceName) && Objects.nonNull(endpointName)
+                    && Objects.nonNull(endpointName) && Objects.nonNull(destEndpointName)
                     && Objects.nonNull(normal) && Objects.nonNull(destNormal);
             default:
                 return false;