Bug 888693 - Add a null-check to nsWindowMemoryReporter.cpp so taking a memory report doesn't crash B2G. r=nmaier

This commit is contained in:
Justin Lebar 2013-06-30 09:39:10 -07:00
parent b58fc87a78
commit 8d980e0018

View File

@ -141,7 +141,7 @@ CollectWindowReports(nsGlobalWindow *aWindow,
location = GetWindowURI(aWindow);
}
if (location) {
if (addonManager && location) {
bool ok;
nsAutoCString id;
if (NS_SUCCEEDED(addonManager->MapURIToAddonID(location, id, &ok)) && ok) {