Fix NPE when OAP nodes synchronize events with each other in cluster mode (#7531)

This commit is contained in:
kezhenxu94 2021-08-23 13:18:21 +08:00 committed by GitHub
parent 6d3a33ea8e
commit 7b206458fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,7 @@ Release Notes.
* Add a new API to test log analysis language.
* Harden the security of Groovy-based DSL, MAL and LAL.
* Fix distinct in Service/Instance/Endpoint query is not working.
* Fix NPE when OAP nodes synchronize events with each other in cluster mode.
#### UI

View File

@ -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());