mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Handle no data gracefully
This commit is contained in:
@@ -130,5 +130,11 @@ std::vector<double> RigWellLogFile::values(const QString& name) const
|
||||
// TODO: Possibly handle discrete logs
|
||||
|
||||
CVF_ASSERT(m_wellLogFile);
|
||||
return m_wellLogFile->GetContLog(name.toStdString());
|
||||
|
||||
if (m_wellLogFile->HasContLog(name.toStdString()))
|
||||
{
|
||||
return m_wellLogFile->GetContLog(name.toStdString());
|
||||
}
|
||||
|
||||
return std::vector<double>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user