Added array null check

This commit is contained in:
Martin Heidegger 2016-02-16 01:41:02 +09:00
parent acb400ef7f
commit ad71d8bb97
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ module.exports.create = function (deps) {
nextDomain();
} else if (authz.status==='invalid') {
unlink();
challengesState = authz.challenges.map(function (challenge) {
challengesState = (authz.challenges || []).map(function (challenge) {
var result = ' - ' + challenge.uri + ' [' + challenge.status + ']';
if (challenge.error) {
result += '\n ' + challenge.error.detail;