vcl: check mpWindowImpl for nullptr.

Crash in calc's mouse capture / end tracking.

Change-Id: If5b4cded8ebfc04d1fcf645a7b74184532ab2338
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119034
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
Michael Meeks
2021-07-16 16:55:00 +02:00
parent 75b789a8f5
commit c7b9f477f6
+2 -1
View File
@@ -466,7 +466,8 @@ void Window::ReleaseMouse()
{
ImplSVData* pSVData = ImplGetSVData();
pSVData->mpWinData->mpCaptureWin = nullptr;
mpWindowImpl->mpFrame->CaptureMouse( false );
if (mpWindowImpl && mpWindowImpl->mpFrame)
mpWindowImpl->mpFrame->CaptureMouse( false );
ImplGenerateMouseMove();
}
}