Fixed Failure of Enhanced Kafka Interceptor to Acquire SkyWalking DynamicField (#2470)

This commit is contained in:
Wilt 2019-04-11 14:22:02 +08:00 committed by 吴晟 Wu Sheng
parent 4beaac001b
commit a0ef72cf8b
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ public class CallbackInterceptor implements InstanceMethodsAroundInterceptor {
//Get the SnapshotContext
ContextSnapshot contextSnapshot = (ContextSnapshot)objInst.getSkyWalkingDynamicField();
ContextManager.continued(contextSnapshot);
if (null != contextSnapshot) {
ContextManager.continued(contextSnapshot);
}
}
@Override