#5251 Comparison View : Guard null pointer access

This commit is contained in:
Magne Sjaastad 2019-12-18 11:57:39 +01:00
parent 6ae0c5e816
commit 91cd27d589

View File

@ -36,7 +36,8 @@ public:
bool makeReady()
{
m_activeView = RiaApplication::instance()->activeReservoirView();
if ( m_activeView && m_activeView->viewer()->viewerCommands()->isCurrentPickInComparisonView() )
if ( m_activeView && m_activeView->viewer() && m_activeView->viewer()->viewerCommands() &&
m_activeView->viewer()->viewerCommands()->isCurrentPickInComparisonView() )
{
return true;
}