mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5251 Comparison View : Guard null pointer access
This commit is contained in:
parent
6ae0c5e816
commit
91cd27d589
@ -36,7 +36,8 @@ public:
|
|||||||
bool makeReady()
|
bool makeReady()
|
||||||
{
|
{
|
||||||
m_activeView = RiaApplication::instance()->activeReservoirView();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user