Bug 1610271 - Null-check updateManager in UrlbarProviderSearchTips.lastBrowserUpdateDate. r=adw

Differential Revision: https://phabricator.services.mozilla.com/D60434

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Harry Twyford 2020-01-21 23:28:57 +00:00
Родитель 45c0f04775
Коммит b23f9e9a90
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -412,7 +412,7 @@ async function lastBrowserUpdateDate() {
// Get the newest update in the update history. This isn't perfect // Get the newest update in the update history. This isn't perfect
// because these dates are when updates are applied, not when the // because these dates are when updates are applied, not when the
// user restarts with the update. See bug 1595328. // user restarts with the update. See bug 1595328.
if (updateManager.updateCount) { if (updateManager && updateManager.updateCount) {
let update = updateManager.getUpdateAt(0); let update = updateManager.getUpdateAt(0);
return update.installDate; return update.installDate;
} }