Fix null reference bug

This commit is contained in:
Calvin Montgomery 2014-08-02 19:15:49 -07:00
parent 84a07030d0
commit 59dd733219

View file

@ -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]);
}