mirror of
https://gitee.com/farsunset/cim.git
synced 2025-07-31 12:04:45 +08:00
需改Sentbody.toString() 可能出现空指针的问题
This commit is contained in:
parent
ec94bfcdf9
commit
7579845369
Binary file not shown.
@ -23,6 +23,7 @@ package com.farsunset.cim.model;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@ -35,7 +36,7 @@ public class SentBody implements Serializable {
|
||||
|
||||
private String key;
|
||||
|
||||
private Map<String, String> data;
|
||||
private final Map<String, String> data = new HashMap<>();
|
||||
|
||||
private long timestamp;
|
||||
|
||||
@ -44,7 +45,8 @@ public class SentBody implements Serializable {
|
||||
}
|
||||
|
||||
public void setData(Map<String, String> data) {
|
||||
this.data = data;
|
||||
this.data.clear();
|
||||
this.data.putAll(data);
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user