pre-proto - Added handling of case where fracture templates have been deleted.

This commit is contained in:
astridkbjorke
2017-02-17 09:32:45 +01:00
parent fa638243ab
commit ab7b86111e
2 changed files with 4 additions and 2 deletions

View File

@@ -95,7 +95,8 @@ void RimSimWellFracture::setAzimuth()
}
else //Azimuth value read from template
{
azimuth = attachedFractureDefinition()->azimuthAngle;
if (attachedFractureDefinition()) azimuth = attachedFractureDefinition()->azimuthAngle;
else azimuth = 0.0;
}
}