WBS: Fix crash when importing CSV into existing WBS.

This commit is contained in:
Kristian Bendiksen authored and jonjenssen committed 2024-02-29 10:47:12 +01:00
1 parent b33d117784
commit 2f3a20c73c
1 file changed
+3
@@ -118,6 +118,8 @@ std::vector<std::pair<double, double>> RimWellLogCsvFile::findMdAndChannelValues
for ( RimWellLogCsvFile* wellLogFile : wellLogFiles )
{
RigWellLogCsvFile* fileData = wellLogFile->wellLogFileData();
if ( fileData )
{
std::vector<double> channelValues = fileData->values( channelName );
if ( !channelValues.empty() )
{
@@ -135,6 +137,7 @@ std::vector<std::pair<double, double>> RimWellLogCsvFile::findMdAndChannelValues
return depthValuePairs;
}
}
}
return std::vector<std::pair<double, double>>();
}