mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 940751 - Guard against potentially dereferencing a null pointer. r=botond
This commit is contained in:
parent
ffff44f8da
commit
66161c5f7c
@ -138,7 +138,7 @@ APZCCallbackHelper::GetScrollIdentifiers(const nsIContent* aContent,
|
||||
uint32_t* aPresShellIdOut,
|
||||
FrameMetrics::ViewID* aViewIdOut)
|
||||
{
|
||||
if (!nsLayoutUtils::FindIDFor(aContent, aViewIdOut)) {
|
||||
if (!aContent || !nsLayoutUtils::FindIDFor(aContent, aViewIdOut)) {
|
||||
return false;
|
||||
}
|
||||
nsCOMPtr<nsIDOMWindowUtils> utils = GetDOMWindowUtils(aContent);
|
||||
|
Loading…
Reference in New Issue
Block a user