Thermal Fracture: guard for nullptrs for surface export.

This commit is contained in:
Kristian Bendiksen committed 2022-10-03 08:33:55 +02:00
1 parent 8ed349f859
commit 8193f24a55
3 files changed
+13 -6

No files matched your search

@@ -45,7 +45,8 @@ RimcThermalFractureTemplate_exportToFile::RimcThermalFractureTemplate_exportToFi
caf::PdmObjectHandle* RimcThermalFractureTemplate_exportToFile::execute()
{
RimThermalFractureTemplate* thermalFracture = self<RimThermalFractureTemplate>();
RifThermalFractureTemplateSurfaceExporter::writeToFile( thermalFracture, m_timeStep(), m_filePath() );
if ( thermalFracture && thermalFracture->fractureDefinition() )
RifThermalFractureTemplateSurfaceExporter::writeToFile( thermalFracture, m_timeStep(), m_filePath() );
return nullptr;
}