summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-16 09:14:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-16 12:58:37 +0200
commit2fbf1082cde79b7259f0139a6c8978fe797be86c (patch)
treedc98e2ecfbc5fa8b68fa25a4fc6ab83f2cc4137f /svx
parent6b008de9e47ea9938e0b615f3171a7c273884596 (diff)
cid#1500455 Dereference after null check
Change-Id: I2ef903eaf4df4fbd225d01e394ba11ffa43386e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138346 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/svxruler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index 98c9211efb01..e1308ff749c3 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -2709,7 +2709,7 @@ void SvxRuler::CalcMinMax()
nMaxLeft = lNullPix;
else
nMaxLeft = mpBorders[nIdx - 1].nPos + mpBorders[nIdx - 1].nWidth + lNullPix;
- if(nIdx == mxColumnItem->GetActColumn())
+ if (mxColumnItem && nIdx == mxColumnItem->GetActColumn())
{
if(bRTL)
{