sc/source/ui/app/inputhdl.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 72fdaf3450fc49fa651fe482cabb4210ef80a3c1
Author:     Xisco Fauli <[email protected]>
AuthorDate: Wed Dec 21 13:27:19 2022 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Mon Dec 26 10:44:26 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 <[email protected]>
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>
    (cherry picked from commit 8efbc3e7f667bc1f04db4bcf908df905a1f34e06)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144668
    (cherry picked from commit 6dddcf6ca4c418a0c97f13b902aad8abf2258245)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144716
    Reviewed-by: Christian Lohmaier <[email protected]>
    Tested-by: Xisco Fauli <[email protected]>

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

Reply via email to