vcl/source/window/event.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 365b3f1f21cc799b5a8ab7be63a5725abf6baed9 Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Tue Nov 23 14:25:45 2021 +0000 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Tue Nov 23 17:37:07 2021 +0100 Crash around help-windows. Seems a popular way to crash: vcl::Window::ImplCallMove() vcl/source/window/event.cxx:555 vcl::Window::Show(bool, ShowFlags) [clone .localalias] /usr/include/c++/10/bits/unique_ptr.h:173 vcl::Window::Show(bool, ShowFlags) vcl/source/window/window.cxx:2345 HelpTextWindow::ImplShow() vcl/source/app/help.cxx:371 Scheduler::ProcessTaskScheduling() vcl/source/app/scheduler.cxx:495 Change-Id: I33ca0059844395c41f4d76619cca22aec81df207 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125710 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.me...@collabora.com> diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx index bc6e2f0f8f42..aca9fbb803da 100644 --- a/vcl/source/window/event.cxx +++ b/vcl/source/window/event.cxx @@ -535,7 +535,8 @@ void Window::ImplCallMove() vcl::Window *pParent = ImplGetParent(); while( pParent ) { - if( pParent->mpWindowImpl->mpFrame != mpWindowImpl->mpFrame ) + if( pParent->mpWindowImpl && + pParent->mpWindowImpl->mpFrame != mpWindowImpl->mpFrame ) { pParentFrame = pParent->mpWindowImpl->mpFrame; break;