mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash creating RFT plot from well with well path but without LAS file
This commit is contained in:
@@ -497,8 +497,11 @@ std::map<QDateTime, std::set<RimWellRftAddress>> RimWellRftPlot::timeStepsFromWe
|
||||
std::map<QDateTime, std::set<RimWellRftAddress> > timeStepsMap;
|
||||
for (const auto& wellPath : wellPaths)
|
||||
{
|
||||
auto wellLogFile = wellPath->wellLogFile();
|
||||
auto timeStep = RiaDateStringParser::parseDateString(wellLogFile->date());
|
||||
RimWellLogFile* wellLogFile = wellPath->wellLogFile();
|
||||
|
||||
if (wellLogFile)
|
||||
{
|
||||
QDateTime timeStep = RiaDateStringParser::parseDateString(wellLogFile->date());
|
||||
|
||||
if ( timeStepsMap.count(timeStep) == 0 )
|
||||
{
|
||||
@@ -506,6 +509,7 @@ std::map<QDateTime, std::set<RimWellRftAddress>> RimWellRftPlot::timeStepsFromWe
|
||||
}
|
||||
timeStepsMap[timeStep].insert(RimWellRftAddress(RftSourceType::OBSERVED));
|
||||
}
|
||||
}
|
||||
return timeStepsMap;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user