mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Null-check to fix crash. b=601427 r=mstange a=joe
This commit is contained in:
parent
5e5ec72068
commit
f1222d224a
@ -316,7 +316,7 @@ nsNativeTheme::GetScrollbarButtonType(nsIFrame* aFrame)
|
||||
nsNativeTheme::TreeSortDirection
|
||||
nsNativeTheme::GetTreeSortDirection(nsIFrame* aFrame)
|
||||
{
|
||||
if (!aFrame)
|
||||
if (!aFrame || !aFrame->GetContent())
|
||||
return eTreeSortDirection_Natural;
|
||||
|
||||
static nsIContent::AttrValuesArray strings[] =
|
||||
|
Loading…
Reference in New Issue
Block a user