diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-22 22:34:52 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-05-23 10:59:20 +0200 |
commit | be9c71df2283523a3bc87f040afb7daa0da0bfdf (patch) | |
tree | 12b89f83e6ecbf050328f1adee4c5b73b96e7376 | |
parent | 9d1956031ed326e3d377800530993dcd2571f99a (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.cxx | 2 |
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(); |