#6210 Fracture Model Plot: Fix crash when changing MD.

This commit is contained in:
Kristian Bendiksen 2020-07-08 06:28:52 +02:00
parent b98606af52
commit 06716bc664
2 changed files with 10 additions and 0 deletions

View File

@ -196,6 +196,11 @@ void RimElasticPropertiesCurve::performDataExtraction( bool* isUsingPseudoLength
std::vector<double> poroValues;
fractureModelPlot->getPorosityValues( poroValues );
if ( poroValues.empty() )
{
RiaLogging::error( QString( "Empty porosity data found when extracting elastic properties." ) );
return;
}
// TODO: make this settable??
QString colorLegendName = RiaDefines::faciesColorLegendName();

View File

@ -160,6 +160,11 @@ void RimLayerCurve::performDataExtraction( bool* isUsingPseudoLength )
std::vector<double> faciesValues;
fractureModelPlot->getFaciesValues( faciesValues );
if ( faciesValues.empty() )
{
RiaLogging::error( QString( "Empty facies data found for layer curve." ) );
return;
}
assert( faciesValues.size() == curveData.data.size() );