sw/source/uibase/utlui/unotools.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bb2cd0f6bdb13186c4d67934d0db73151230a421
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed May 22 22:34:52 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu May 23 12:46:48 2024 +0200

    sw: warning C6011: Dereferencing NULL pointer
    
    Change-Id: Ia4b7f98525e07c5a58b752d7e68d89705f87ac9c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167936
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/uibase/utlui/unotools.cxx 
b/sw/source/uibase/utlui/unotools.cxx
index 93edfaad30a7..3105fa9607be 100644
--- a/sw/source/uibase/utlui/unotools.cxx
+++ b/sw/source/uibase/utlui/unotools.cxx
@@ -408,7 +408,7 @@ IMPL_LINK( SwOneExampleFrame, TimeoutHdl, Timer*, pTimer, 
void )
         if (pDoc)
         {
             SwEditShell* pSh = pDoc->GetEditShell();
-            if( pSh->ActionCount() )
+            if( pSh && pSh->ActionCount() )
             {
                 pSh->EndAllAction();
                 pSh->UnlockPaint();

Reply via email to