vcl/unx/gtk3/a11y/atkfactory.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 418beb68f00190f61effb69726343adcd4597f64 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Sep 1 12:07:01 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Sep 1 15:02:04 2022 +0200 tdf#150688 return atk_noop_object_wrapper_new() instead of null on failure Change-Id: I20fd190a36649193ee2a1e536f520344c5f6c89a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139160 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/unx/gtk3/a11y/atkfactory.cxx b/vcl/unx/gtk3/a11y/atkfactory.cxx index f92f9a667c9f..2fc407b7bc06 100644 --- a/vcl/unx/gtk3/a11y/atkfactory.cxx +++ b/vcl/unx/gtk3/a11y/atkfactory.cxx @@ -117,7 +117,7 @@ wrapper_factory_create_accessible( GObject *obj ) return atk_noop_object_wrapper_new(); GtkSalFrame* pFrame = GtkSalFrame::getFromWindow(pTopLevel); - g_return_val_if_fail( pFrame != nullptr, nullptr ); + g_return_val_if_fail(pFrame != nullptr, atk_noop_object_wrapper_new()); vcl::Window* pFrameWindow = pFrame->GetWindow(); if( pFrameWindow ) @@ -145,7 +145,7 @@ wrapper_factory_create_accessible( GObject *obj ) } } - return nullptr; + return atk_noop_object_wrapper_new(); } AtkObject* ooo_fixed_get_accessible(GtkWidget *obj)