summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-13 10:41:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-13 16:46:02 +0100
commit92e3d17dbea13f1ad2f33824d0e2dc2a0a8c4014 (patch)
treee295d5aa02f4445a67bdb59de55571cc93dff941 /hwpfilter
parentae24ce8c633a85e06aa8701c839b100b3dd5b6bf (diff)
ofz#45525 Null-dereference
Change-Id: If55d049f12eb00ba786f12d565081404fcdf147b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131465 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hwpreader.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index 60af8216f97b..6c757409e8dc 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -3449,7 +3449,7 @@ void HwpReader::makeTextBox(TxtBox * hbox)
OUString::number(WTMM( hbox->box_ys + hbox->cap_ys )) + "mm");
startEl("draw:text-box");
mxList->clear();
- if( hbox->cap_pos % 2 ) /* The caption is on the top */
+ if (!hbox->caption.empty() && hbox->cap_pos % 2) /* The caption is on the top */
{
parsePara(hbox->caption.front().get());
}