hwpfilter/source/hwpreader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 92e3d17dbea13f1ad2f33824d0e2dc2a0a8c4014 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Mar 13 10:41:43 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Mar 13 16:46:02 2022 +0100 ofz#45525 Null-dereference Change-Id: If55d049f12eb00ba786f12d565081404fcdf147b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131465 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> 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()); }