diff --git a/controllers/user.js b/controllers/user.js index 55873c517..f4b865a46 100644 --- a/controllers/user.js +++ b/controllers/user.js @@ -890,7 +890,7 @@ exports.userEditPreferencesPage = function (aReq, aRes, aNext) { return aStrategy.display; }); - options.defaultStrategy = strategies[defaultStrategy].name; + options.defaultStrategy = strategies[defaultStrategy] ? strategies[defaultStrategy].name : null; options.defaultStrat = defaultStrategy; options.haveOtherStrategies = options.usedStrategies.length > 0;