openvidu-server: recording stop fix (null pointer when recording stopped event)

pull/255/head
pabloFuente 2019-03-26 15:12:36 +01:00
parent f53da91821
commit 494081821f
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ public class CDREventRecording extends CDREventEnd {
// recordingStopped
public CDREventRecording(CDREventRecording event, Recording recording, EndReason reason) {
super(CDREventName.recordingStopped, event.getSessionId(), event.getTimestamp(), reason);
super(CDREventName.recordingStopped, event == null ? recording.getSessionId() : event.getSessionId(),
event == null ? recording.getCreatedAt() : event.getTimestamp(), reason);
this.recording = recording;
}