basctl/source/basicide/baside2b.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7ec4e29ec5d7063b9e9a9e9ea6c1e18579c48218 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Apr 19 10:31:52 2023 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Apr 19 12:57:52 2023 +0200 basctl: fix crash in EditorWindow::Command GetWheelData returns nullptr if mnCommand != CommandEventId::Wheel Change-Id: I57b30cc137b2f56e4295d49d0163ad95323201ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150598 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 4819de623900..a82cf2ae4e4b 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -505,7 +505,7 @@ void EditorWindow::Command( const CommandEvent& rCEvt ) const CommandWheelData* pData = rCEvt.GetWheelData(); // Check if it is a Ctrl+Wheel zoom command - if (pData->IsMod1()) + if (pData && pData->IsMod1()) { const sal_uInt16 nOldZoom = GetCurrentZoom(); sal_uInt16 nNewZoom;