[Libreoffice-commits] core.git: svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 19 20:08:46 UTC 2021
svx/source/tbxctrls/StylesPreviewWindow.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit b41bb50749cee0281ecd19bafc2bb82c671eeeba
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 19 15:15:18 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Mar 19 21:07:59 2021 +0100
cid#1473993 Uninitialized pointer read
Change-Id: Id1c4c48ef89241d2b3c8840a55a5511df7c263c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112755
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svx/source/tbxctrls/StylesPreviewWindow.cxx b/svx/source/tbxctrls/StylesPreviewWindow.cxx
index 59e86b7d2bd6..08d812af6493 100644
--- a/svx/source/tbxctrls/StylesPreviewWindow.cxx
+++ b/svx/source/tbxctrls/StylesPreviewWindow.cxx
@@ -78,8 +78,7 @@ StylePoolChangeListener::StylePoolChangeListener(StylesPreviewWindow_Base* pPrev
{
SfxObjectShell* pDocShell = SfxObjectShell::Current();
- if (pDocShell)
- m_pStyleSheetPool = pDocShell->GetStyleSheetPool();
+ m_pStyleSheetPool = pDocShell ? pDocShell->GetStyleSheetPool() : nullptr;
if (m_pStyleSheetPool)
{
More information about the Libreoffice-commits
mailing list