Fix null reference bug
This commit is contained in:
parent
84a07030d0
commit
59dd733219
|
@ -987,6 +987,10 @@ PlaylistModule.prototype.startPlayback = function (time) {
|
|||
* Its purpose is to allow modification of playback data before
|
||||
* users are sent a changeMedia
|
||||
*/
|
||||
if (!self.current || !self.current.media) {
|
||||
return;
|
||||
}
|
||||
|
||||
self.sendChangeMedia(self.channel.users);
|
||||
self.channel.notifyModules("onMediaChange", [self.current.media]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue