mirror of https://github.com/OpenVidu/openvidu.git
openvidu-java-client: null pointer fix when resetting IPCAM Connection object
parent
285d1cbb8b
commit
7ab1de4daf
|
@ -550,12 +550,13 @@ public class Session {
|
||||||
subscribers.add((subscriber.getAsJsonObject()).get("streamId").getAsString());
|
subscribers.add((subscriber.getAsJsonObject()).get("streamId").getAsString());
|
||||||
});
|
});
|
||||||
|
|
||||||
this.activeConnections.put(con.get("connectionId").getAsString(),
|
Connection c = new Connection(con.get("connectionId").getAsString(), con.get("createdAt").getAsLong(),
|
||||||
new Connection(con.get("connectionId").getAsString(), con.get("createdAt").getAsLong(),
|
OpenViduRole.valueOf(con.get("role").getAsString()),
|
||||||
OpenViduRole.valueOf(con.get("role").getAsString()), con.get("token").getAsString(),
|
(con.has("token") ? con.get("token").getAsString() : null), con.get("location").getAsString(),
|
||||||
con.get("location").getAsString(), con.get("platform").getAsString(),
|
con.get("platform").getAsString(), con.get("serverData").getAsString(),
|
||||||
con.get("serverData").getAsString(), con.get("clientData").getAsString(), publishers,
|
con.get("clientData").getAsString(), publishers, subscribers);
|
||||||
subscribers));
|
|
||||||
|
this.activeConnections.put(con.get("connectionId").getAsString(), c);
|
||||||
});
|
});
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue