You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zipkin.apache.org by GitBox <gi...@apache.org> on 2019/03/18 04:17:40 UTC

[GitHub] [incubator-zipkin-brave-cassandra] adriancole commented on a change in pull request #20: Fixes integration test setup and propagation bug

adriancole commented on a change in pull request #20: Fixes integration test setup and propagation bug
URL: https://github.com/apache/incubator-zipkin-brave-cassandra/pull/20#discussion_r266290763
 
 

 ##########
 File path: cassandra/src/main/java/brave/cassandra/Tracing.java
 ##########
 @@ -96,9 +97,9 @@ protected final UUID newSession(
 
   /** This extracts the RPC span encoded in the custom payload, or starts a new trace */
   Span spanFromPayload(Tracer tracer, @Nullable Map<String, ByteBuffer> payload) {
-    ByteBuffer b3 = payload.get("b3");
+    ByteBuffer b3 = payload != null ? payload.get("b3") : null;
 
 Review comment:
   bug 1

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@zipkin.apache.org
For additional commands, e-mail: dev-help@zipkin.apache.org