mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
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:
parent
b58fc87a78
commit
8d980e0018
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user