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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to