From fdc6b004c536d50759ef7d1560a24dd7a37e4461 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 22 Mar 2014 09:51:29 -0400 Subject: [PATCH] closed #1260, closed #1261 --- src/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.js b/src/install.js index 2ce069656a..2dfed32f57 100644 --- a/src/install.js +++ b/src/install.js @@ -291,7 +291,7 @@ var async = require('async'), // Check if an administrator needs to be created var Groups = require('./groups'); Groups.get('administrators', {}, function (err, groupObj) { - if (groupObj.memberCount > 0) { + if (!err && groupObj && groupObj.memberCount > 0) { winston.info('Administrator found, skipping Admin setup'); next(); } else {