Fix possible NULL dereference in TabBase::IsInLayout().

This commit is contained in:
Alex Wilson 2012-02-01 11:02:56 +13:00
parent 4ca2a44779
commit f9c58743e3

View File

@ -66,7 +66,7 @@ TabBase::~TabBase()
bool
TabBase::IsInLayout(BALMLayout* layout)
{
return fLayouts->HasLayout(layout);
return fLayouts ? fLayouts->HasLayout(layout) : false;
}