Null-check to fix crash. b=601427 r=mstange a=joe

This commit is contained in:
Mats Palmgren 2010-10-11 00:07:00 +02:00
parent 5e5ec72068
commit f1222d224a

View File

@ -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[] =