sc/source/ui/app/inputhdl.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 8efbc3e7f667bc1f04db4bcf908df905a1f34e06 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 15:12:18 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> diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 3ad56ba03cc7..75655d807b73 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -4418,6 +4418,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