sc/source/ui/app/inputhdl.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 6dddcf6ca4c418a0c97f13b902aad8abf2258245 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Dec 21 13:27:19 2022 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Dec 21 19:32:11 2022 +0000
sc: fix null deref in ScInputHandler::InputChanged See https://crashreport.libreoffice.org/stats/signature/EditView::ShowCursor(bool,bool,bool) and https://crashreport.libreoffice.org/stats/signature/EditEngine::GetText(LineEnd) Change-Id: Ib1486161c722c213ccc64809010f54e9ab4dc52e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144684 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> (cherry picked from commit 8efbc3e7f667bc1f04db4bcf908df905a1f34e06) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144668 diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 11a9d03f9043..884e2e696c3c 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -4400,6 +4400,9 @@ void ScInputHandler::InputSelection( const EditView* pView ) void ScInputHandler::InputChanged( const EditView* pView, bool bFromNotify ) { + if ( !pView ) + return; + UpdateActiveView(); // #i20282# DataChanged needs to know if this is from the input line's modify handler