mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#950 Guard null pointer access
This commit is contained in:
@@ -429,7 +429,11 @@ void RimGeoMechView::updateLegends()
|
||||
|
||||
if (cellResult()->hasCategoryResult())
|
||||
{
|
||||
const std::vector<QString>& fnVector = gmCase->femPartResults()->activeFormationNames()->formationNames();
|
||||
std::vector<QString> fnVector;
|
||||
if (gmCase->femPartResults()->activeFormationNames())
|
||||
{
|
||||
fnVector = gmCase->femPartResults()->activeFormationNames()->formationNames();
|
||||
}
|
||||
cellResult()->legendConfig->setNamedCategoriesInverse(fnVector);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user