Merge "Put a better guard to prevent runtime exception"

This commit is contained in:
Wyatt Allen
2017-04-05 05:32:00 +00:00
committed by Gerrit Code Review

View File

@@ -297,8 +297,9 @@
} }
return this._mapReviewer(reviewer); return this._mapReviewer(reviewer);
}.bind(this)); }.bind(this));
if (this.serverConfig.note_db_enabled) { var ccsEl = this.$$('#ccs');
this.$$('#ccs').additions().forEach(function(reviewer) { if (ccsEl) {
ccsEl.additions().forEach(function(reviewer) {
if (reviewer.account) { if (reviewer.account) {
accountAdditions[reviewer.account._account_id] = true; accountAdditions[reviewer.account._account_id] = true;
} }