Guard null pointer use

This commit is contained in:
Magne Sjaastad
2025-03-14 11:48:32 +01:00
parent b9f1f4b1d6
commit e8885065ea
@@ -114,9 +114,11 @@ void RicSnapshotAllViewsToFileFeature::exportSnapshotOfViewsIntoFolder( const QS
for ( auto riv : viewsForSnapshot )
{
RiuViewer* viewer = riv->viewer();
if ( !viewer ) continue;
RiaApplication::instance()->setActiveReservoirView( riv );
RiuViewer* viewer = riv->viewer();
Riu3DMainWindowTools::setActiveViewer( viewer->layoutWidget() );
RiaViewRedrawScheduler::instance()->clearViewsScheduledForUpdate();