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