view: Check for viewData in IsVisible()
viewData can be NULL, make sure we verify it before dereferencing.
(cherry picked from commit 5b8661f2ab
)
This commit is contained in:
parent
17c0b3e460
commit
e5463330ef
|
@ -1526,7 +1526,7 @@ bool VIEW::IsVisible( const VIEW_ITEM* aItem ) const
|
||||||
{
|
{
|
||||||
const auto viewData = aItem->viewPrivData();
|
const auto viewData = aItem->viewPrivData();
|
||||||
|
|
||||||
return viewData->m_flags & VISIBLE;
|
return viewData && ( viewData->m_flags & VISIBLE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue