Fix possible NULL dereference in TabBase::IsInLayout().
This commit is contained in:
@@ -66,7 +66,7 @@ TabBase::~TabBase()
|
|||||||
bool
|
bool
|
||||||
TabBase::IsInLayout(BALMLayout* layout)
|
TabBase::IsInLayout(BALMLayout* layout)
|
||||||
{
|
{
|
||||||
return fLayouts->HasLayout(layout);
|
return fLayouts ? fLayouts->HasLayout(layout) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user