mirror of https://github.com/OpenVidu/openvidu.git
openvidu-java-client: null pointer fix
parent
aa0d96ca30
commit
1829ee15fe
|
@ -564,7 +564,7 @@ public class OpenVidu {
|
|||
this.activeSessions.computeIfAbsent(sessionId, sId -> {
|
||||
log.info("New session '{}' fetched", sessionId);
|
||||
hasChanged[0] = true;
|
||||
return new Session((JSONObject) session);
|
||||
return new Session(this, (JSONObject) session);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ import java.util.stream.Collectors;
|
|||
|
||||
import org.apache.http.HttpHeaders;
|
||||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.client.HttpClient;
|
||||
import org.apache.http.client.methods.HttpDelete;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
|
@ -64,7 +63,8 @@ public class Session {
|
|||
this.getSessionIdHttp();
|
||||
}
|
||||
|
||||
protected Session(JSONObject json) {
|
||||
protected Session(OpenVidu openVidu, JSONObject json) {
|
||||
this.openVidu = openVidu;
|
||||
this.resetSessionWithJson(json);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue