summaryrefslogtreecommitdiffstats
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-07 09:05:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-07 10:53:25 +0100
commitf6f665200c3ac6d046194ea25535c25d00717378 (patch)
tree431dde8f762a7552d9be45b2e77bdf29c8646f15 /hwpfilter
parentfaster check whether attributes have changed (tdf#117366) (diff)
downloadcore-f6f665200c3ac6d046194ea25535c25d00717378.tar.gz
core-f6f665200c3ac6d046194ea25535c25d00717378.zip
ofz: Null-dereference
Change-Id: I11213a5ab05389b7c5020d878b0f657045693e30 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131094 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 a20d71b5c5c3..c0feb4f5b61d 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -3696,7 +3696,7 @@ void HwpReader::makePicture(Picture * hbox)
OUString::number(WTMM( hbox->box_ys + hbox->style.margin[1][2] + hbox->style.margin[1][3] + hbox->cap_ys )) + "mm");
startEl("draw:text-box");
mxList->clear();
- if( hbox->cap_pos % 2 ) /* Caption is on the top */
+ if (!hbox->caption.empty() && hbox->cap_pos % 2) /* Caption is on the top */
{
parsePara(hbox->caption.front().get());
}