diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-05-25 10:23:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-25 12:56:41 +0200 |
commit | 5dabac23d0b1fa3b0d6a975df3bce066d14afa8a (patch) | |
tree | 6cbbe0e50204ba1c195a9a835d6e1d5a6adf005e | |
parent | 856887cbc8a0a2fd04b90ee2170948d34c8ff9c4 (diff) |
91 null derefs seen in crashreporting report
Change-Id: I8114f57cf5a5f74b2debac963813dcf6aac1bd0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134930
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/uibase/sidebar/PageStylesPanel.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/sidebar/PageStylesPanel.cxx b/sw/source/uibase/sidebar/PageStylesPanel.cxx index c0e1e89b43e0..ca481345d581 100644 --- a/sw/source/uibase/sidebar/PageStylesPanel.cxx +++ b/sw/source/uibase/sidebar/PageStylesPanel.cxx @@ -160,6 +160,11 @@ void PageStylesPanel::Update() { const eFillStyle eXFS = static_cast<eFillStyle>(mxBgFillType->get_active()); SfxObjectShell* pSh = SfxObjectShell::Current(); + if (!pSh) + { + SAL_WARN("sw.ui", "PageStylesPanel::Update(): no SfxObjectShell found"); + return; + } switch(eXFS) { case NONE: |