mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard null pointer access
This commit is contained in:
@@ -113,6 +113,8 @@ void RiaCompletionTypeCalculationScheduler::slotRecalculateCompletionType()
|
|||||||
QModelIndex mi = RiuMainWindow::instance()->projectTreeView()->treeView()->currentIndex();
|
QModelIndex mi = RiuMainWindow::instance()->projectTreeView()->treeView()->currentIndex();
|
||||||
|
|
||||||
for (RimEclipseCase* eclipseCase : uniqueCases)
|
for (RimEclipseCase* eclipseCase : uniqueCases)
|
||||||
|
{
|
||||||
|
if (eclipseCase)
|
||||||
{
|
{
|
||||||
for (const auto& w : eclipseCase->views())
|
for (const auto& w : eclipseCase->views())
|
||||||
{
|
{
|
||||||
@@ -123,6 +125,7 @@ void RiaCompletionTypeCalculationScheduler::slotRecalculateCompletionType()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_eclipseCasesToRecalculate.clear();
|
m_eclipseCasesToRecalculate.clear();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user