You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/08/23 04:12:39 UTC

[skywalking] branch kezhenxu94-patch-1 created (now 90e49d5)

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a change to branch kezhenxu94-patch-1
in repository https://gitbox.apache.org/repos/asf/skywalking.git.


      at 90e49d5  bugfix: NPE when OAP nodes synchronize with each other

This branch includes the following new commits:

     new 90e49d5  bugfix: NPE when OAP nodes synchronize with each other

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[skywalking] 01/01: bugfix: NPE when OAP nodes synchronize with each other

Posted by ke...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch kezhenxu94-patch-1
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit 90e49d549d160dfb9774061f208f4c871dd4a7b4
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Mon Aug 23 12:12:25 2021 +0800

    bugfix: NPE when OAP nodes synchronize with each other
---
 .../main/java/org/apache/skywalking/oap/server/core/source/Event.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/source/Event.java b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/source/Event.java
index f985d08..52f5b9f 100644
--- a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/source/Event.java
+++ b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/source/Event.java
@@ -18,6 +18,7 @@
 
 package org.apache.skywalking.oap.server.core.source;
 
+import com.google.common.base.Strings;
 import java.util.HashMap;
 import java.util.Map;
 import lombok.EqualsAndHashCode;
@@ -186,7 +187,7 @@ public class Event extends Metrics implements ISource, WithMetadata, LongValueHo
         builder.addDataStrings(getName());
         builder.addDataStrings(getType());
         builder.addDataStrings(getMessage());
-        builder.addDataStrings(getParameters());
+        builder.addDataStrings(Strings.nullToEmpty(getParameters()));
 
         builder.addDataLongs(getStartTime());
         builder.addDataLongs(getEndTime());