diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-30 09:16:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-30 22:32:59 +0100 |
commit | ed16c7fbdce8bf22d32d2a2b3d250e382ea404d9 (patch) | |
tree | 6d551fa816ac6e8ea31671ff433514e49bb67247 | |
parent | 7e0a4322147892021f3d93fb8de23ed293d575a7 (diff) |
Resolves: tdf#159386 deref of null result of Clone
Change-Id: I8e903a20bd28c778a39418bc89e42ae1c6932dc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162736
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | sw/source/uibase/uiview/viewstat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx index 2bcb6844ac16..77182fa44efa 100644 --- a/sw/source/uibase/uiview/viewstat.cxx +++ b/sw/source/uibase/uiview/viewstat.cxx @@ -573,7 +573,7 @@ void SwView::GetState(SfxItemSet &rSet) SfxPoolItemHolder aResult; if(nAlias) GetViewFrame().GetDispatcher()->QueryState(nAlias, aResult); - if(aResult) + if (aResult && !IsInvalidItem(aResult.getItem()) && !IsDisabledItem(aResult.getItem())) { if (!(m_nSelectionType & SelectionType::DrawObject)) { |