diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-09 09:07:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-09 12:07:52 +0100 |
commit | 81c5d2f42afa6d0bf5a612770b7e4fee5ebf4d28 (patch) | |
tree | a8366203f702e4cf0ef7c981eda15d8bf17fc1c7 /lotuswordpro | |
parent | 966b94cd0596a30c774ad3cf143e76e85ff7c6fc (diff) |
ofz#6800 Null dereference
Change-Id: I12a0b386917af64f489706ab960f11559ac6122a
Reviewed-on: https://gerrit.libreoffice.org/50988
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwptablelayout.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx index c4a24347b0c4..4f1bf06cd724 100644 --- a/lotuswordpro/source/filter/lwptablelayout.cxx +++ b/lotuswordpro/source/filter/lwptablelayout.cxx @@ -893,7 +893,10 @@ void LwpTableLayout::SplitRowToCells(XFTable* pTmpTable, rtl::Reference<XFTable> double fHeight = 0; OUString styleName; std::unique_ptr<XFRowStyle> xRowStyle(new XFRowStyle); - styleName = pTmpTable->GetRow(1)->GetStyleName(); + XFRow* pRow = pTmpTable->GetRow(1); + if (!pRow) + throw std::runtime_error("missing row"); + styleName = pRow->GetStyleName(); // get settings of the row and assign them to new row style XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager(); |