openvidu-server: fix possible JsonNull exception in Token class
This commit is contained in:
parent
888448fa65
commit
eedf393f6a
@ -161,7 +161,7 @@ public class Token {
|
||||
protected JsonObject getConnectionPropertiesWithFinalJsonFormat() {
|
||||
JsonObject json = this.connectionProperties.toJson(this.sessionId);
|
||||
json.remove("session");
|
||||
json.addProperty("serverData", json.get("data").getAsString());
|
||||
json.add("serverData", json.get("data"));
|
||||
json.remove("data");
|
||||
return json;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user