diff --git a/src/controllers/groups.js b/src/controllers/groups.js index a67700c0d9..837ba3b1f6 100644 --- a/src/controllers/groups.js +++ b/src/controllers/groups.js @@ -113,7 +113,7 @@ groupsController.members = function(req, res, next) { user.getUsersFromSet('group:' + groupName + ':members', req.uid, 0, 49, next); }, ], function(err, users) { - if (err) { + if (err || !groupName) { return next(err); }