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:
Seth Hillbrand 2019-10-15 06:39:54 -07:00 committed by Seth Hillbrand
parent 17c0b3e460
commit e5463330ef
1 changed files with 1 additions and 1 deletions

View File

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