summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-05-22 22:34:52 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-05-23 10:59:20 +0200
commitbe9c71df2283523a3bc87f040afb7daa0da0bfdf (patch)
tree12b89f83e6ecbf050328f1adee4c5b73b96e7376
parent9d1956031ed326e3d377800530993dcd2571f99a (diff)
sw: warning C6011: Dereferencing NULL pointer
Change-Id: Ia4b7f98525e07c5a58b752d7e68d89705f87ac9c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167969 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sw/source/uibase/utlui/unotools.cxx2
1 files changed, 1 insertions, 1 deletions
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();