Added array null check
This commit is contained in:
parent
acb400ef7f
commit
ad71d8bb97
|
@ -235,7 +235,7 @@ module.exports.create = function (deps) {
|
||||||
nextDomain();
|
nextDomain();
|
||||||
} else if (authz.status==='invalid') {
|
} else if (authz.status==='invalid') {
|
||||||
unlink();
|
unlink();
|
||||||
challengesState = authz.challenges.map(function (challenge) {
|
challengesState = (authz.challenges || []).map(function (challenge) {
|
||||||
var result = ' - ' + challenge.uri + ' [' + challenge.status + ']';
|
var result = ' - ' + challenge.uri + ' [' + challenge.status + ']';
|
||||||
if (challenge.error) {
|
if (challenge.error) {
|
||||||
result += '\n ' + challenge.error.detail;
|
result += '\n ' + challenge.error.detail;
|
||||||
|
|
Loading…
Reference in New Issue