mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: fix possible JsonNull exception in Token class
parent
888448fa65
commit
eedf393f6a
|
@ -161,7 +161,7 @@ public class Token {
|
||||||
protected JsonObject getConnectionPropertiesWithFinalJsonFormat() {
|
protected JsonObject getConnectionPropertiesWithFinalJsonFormat() {
|
||||||
JsonObject json = this.connectionProperties.toJson(this.sessionId);
|
JsonObject json = this.connectionProperties.toJson(this.sessionId);
|
||||||
json.remove("session");
|
json.remove("session");
|
||||||
json.addProperty("serverData", json.get("data").getAsString());
|
json.add("serverData", json.get("data"));
|
||||||
json.remove("data");
|
json.remove("data");
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue