Guard null pointer access

This commit is contained in:
Magne Sjaastad
2018-06-27 14:21:08 +02:00
parent 50be372425
commit b4f8df50a2

View File

@@ -113,6 +113,8 @@ void RiaCompletionTypeCalculationScheduler::slotRecalculateCompletionType()
QModelIndex mi = RiuMainWindow::instance()->projectTreeView()->treeView()->currentIndex();
for (RimEclipseCase* eclipseCase : uniqueCases)
{
if (eclipseCase)
{
for (const auto& w : eclipseCase->views())
{
@@ -123,6 +125,7 @@ void RiaCompletionTypeCalculationScheduler::slotRecalculateCompletionType()
}
}
}
}
m_eclipseCasesToRecalculate.clear();