From b23f9e9a9094df473eb3cef530e14c9597899009 Mon Sep 17 00:00:00 2001 From: Harry Twyford Date: Tue, 21 Jan 2020 23:28:57 +0000 Subject: [PATCH] Bug 1610271 - Null-check updateManager in UrlbarProviderSearchTips.lastBrowserUpdateDate. r=adw Differential Revision: https://phabricator.services.mozilla.com/D60434 --HG-- extra : moz-landing-system : lando --- browser/components/urlbar/UrlbarProviderSearchTips.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/components/urlbar/UrlbarProviderSearchTips.jsm b/browser/components/urlbar/UrlbarProviderSearchTips.jsm index 43c25ba136c8..48cfbfe3b05f 100644 --- a/browser/components/urlbar/UrlbarProviderSearchTips.jsm +++ b/browser/components/urlbar/UrlbarProviderSearchTips.jsm @@ -412,7 +412,7 @@ async function lastBrowserUpdateDate() { // Get the newest update in the update history. This isn't perfect // because these dates are when updates are applied, not when the // user restarts with the update. See bug 1595328. - if (updateManager.updateCount) { + if (updateManager && updateManager.updateCount) { let update = updateManager.getUpdateAt(0); return update.installDate; }