Fix NPE when OAP nodes synchronize events with each other in cluster mode (#7531)
This commit is contained in:
parent
6d3a33ea8e
commit
7b206458fe
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue