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