Merge "PolyGerrit: If change throws null for change then return ''"

This commit is contained in:
Kasper Nilsson
2017-06-01 16:41:13 +00:00
committed by Gerrit Code Review

View File

@@ -923,7 +923,10 @@
return this.$.restAPI.getChangeDetail(this._changeNum,
this._handleGetChangeDetailError.bind(this)).then(
change => {
// Issue 4190: Coalesce missing topics to null.
if (!change) {
return '';
}
// Issue 4190: Coalesce missing topics to null.
if (!change.topic) { change.topic = null; }
if (!change.reviewer_updates) {
change.reviewer_updates = null;