summaryrefslogtreecommitdiff
path: root/sfx2/source/view
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-13 14:18:25 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-13 20:25:14 +0200
commit5e6d9c38a7ef4027734064b83ca328df258a575c (patch)
treed1a616e82af199773550a338b341991daa48feaa /sfx2/source/view
parentdf4b0ba2f631e2a99d72011e58ac5e81fbc1dec5 (diff)
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: Ib7a0f2db7e076eb40f65df5b88d617c459611fbd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167600 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2/source/view')
-rw-r--r--sfx2/source/view/lokhelper.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index d94ef124b0b5..756fda428273 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -190,6 +190,7 @@ void SfxLokHelper::setView(int nId)
return;
const SfxViewShell* pViewShell = *itViewShell;
+ assert(pViewShell);
DisableCallbacks dc;
bool bIsCurrShell = (pViewShell == SfxViewShell::Current());