mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
WBS: Fix crash when importing CSV into existing WBS.
This commit is contained in:
parent
b33d117784
commit
2f3a20c73c
@ -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>>();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user