You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2018/08/20 05:59:13 UTC

[GitHub] IanCao closed pull request #1559: fix NPE in AbstracrTracingSpan

IanCao closed pull request #1559: fix NPE in AbstracrTracingSpan
URL: https://github.com/apache/incubator-skywalking/pull/1559
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/AbstractTracingSpan.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/AbstractTracingSpan.java
index 4b80e0d30..fe25b0351 100644
--- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/AbstractTracingSpan.java
+++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/trace/AbstractTracingSpan.java
@@ -149,7 +149,7 @@ public AbstractTracingSpan log(long timestampMicroseconds, Map<String, ?> fields
         }
         LogDataEntity.Builder builder = new LogDataEntity.Builder();
         for (Map.Entry<String, ?> entry : fields.entrySet()) {
-            builder.add(new KeyValuePair(entry.getKey(), entry.getValue().toString()));
+            builder.add(new KeyValuePair(entry.getKey(), String.valueOf(entry.getValue())));
         }
         logs.add(builder.build(timestampMicroseconds));
         return this;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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