Fix four crashes found via automated stacktrace triage (#14702)

* Fail gracefully when exportSnapshots command has no main window
* Guard against unopened plot panels in selection change handler
* Guard ecl_rsthead_alloc against missing INTEHEAD_KW
* Guard against detached flow diag solution in solverInterface
* Never rewrite all crash-triage reports when updating registry
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2026-09-08 11:16:38 +02:00
1 parent 15fe3a3656
commit de3996ee9e
5 files changed
+42 -11

No files matched your search

+6
View File
@@ -111,7 +111,13 @@ ecl_rsthead_type * ecl_rsthead_alloc_from_kw( int report_step , const ecl_kw_typ
ecl_rsthead_type * ecl_rsthead_alloc( const ecl_file_view_type * rst_view, int report_step) {
if (!ecl_file_view_has_kw(rst_view, INTEHEAD_KW))
return NULL;
const ecl_kw_type * intehead_kw = ecl_file_view_iget_named_kw( rst_view , INTEHEAD_KW , 0);
if (!intehead_kw)
return NULL;
const ecl_kw_type * doubhead_kw = NULL;
const ecl_kw_type * logihead_kw = NULL;