diff --git a/both/router.js b/both/router.js index 6b9c187..5a7a5b6 100644 --- a/both/router.js +++ b/both/router.js @@ -88,6 +88,8 @@ Router.map(function() { }, data: function () { var user = Meteor.users.findOne(this.params._id); + if (!user) + return; var playlists = Playlists.find( {owner: this.params._id}); user.userPlaylists = playlists;