diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-03-07 09:05:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-07 10:53:25 +0100 |
commit | f6f665200c3ac6d046194ea25535c25d00717378 (patch) | |
tree | 431dde8f762a7552d9be45b2e77bdf29c8646f15 | |
parent | 6adabd915d931b845fcf2fef15fbf3fca14ec9b3 (diff) |
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>
-rw-r--r-- | hwpfilter/source/hwpreader.cxx | 2 |
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()); } |