mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4966 tNav Crash on import : Guard null pointer access in flow diag library
This commit is contained in:
@@ -71,6 +71,8 @@ namespace {
|
||||
inline std::string
|
||||
firstBlockKeyword(const ecl_file_view_type* block)
|
||||
{
|
||||
if (!block) return "";
|
||||
|
||||
return ecl_kw_get_header(ecl_file_view_iget_kw(block, 0));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user