From 4acf0ebc95a12d881081f17847b043d8380fda57 Mon Sep 17 00:00:00 2001 From: qiyang <15839665935@163.com> Date: Sat, 25 Apr 2020 09:17:44 +0800 Subject: [PATCH] fix: IgnoredTraceContext continue (#4709) (#4710) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 亓杨 --- .../skywalking/apm/agent/core/context/ContextSnapshot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextSnapshot.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextSnapshot.java index dde36c5d3..9db53a179 100644 --- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextSnapshot.java +++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextSnapshot.java @@ -50,7 +50,7 @@ public class ContextSnapshot { } public boolean isFromCurrent() { - return traceSegmentId.equals(ContextManager.capture().getTraceSegmentId()); + return traceSegmentId != null && traceSegmentId.equals(ContextManager.capture().getTraceSegmentId()); } public CorrelationContext getCorrelationContext() {