mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 940751 - Guard against potentially dereferencing a null pointer. r=botond
This commit is contained in:
parent
2cb9c16032
commit
1f1aeedae0
@ -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