view: Check for viewData in IsVisible()

viewData can be NULL, make sure we verify it before dereferencing.
This commit is contained in:
Seth Hillbrand 2019-10-15 06:39:54 -07:00
parent 07c8596084
commit 5b8661f2ab
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}