From 3665011c224cb333bc3adb93b44516ab80e76109 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 21 Oct 2025 07:43:48 -0600 Subject: [PATCH] fix crash from use of null Editor::_pianoroll --- gtk2_ardour/editor_selection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index e7d1ce2c9b..1e9236984e 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1764,7 +1764,7 @@ Editor::maybe_edit_region_in_bottom_pane (RegionView& rv) _pianoroll->contents().hide (); // Why is this needed? _pianoroll->contents().show_all (); } else { - if (_pianoroll->contents().get_parent()) { + if (_pianoroll && _pianoroll->contents().get_parent()) { _pianoroll->contents().unmap (); _pianoroll->contents().get_parent()->remove (_pianoroll->contents()); }