diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:16:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:17:13 +0000 |
commit | 130eaf02de89c8996ff6e817a005993dcbd586e6 (patch) | |
tree | 7db8f1db01e6ff9a69a97ff84964ad641a22eecc /lotuswordpro | |
parent | 1ff0a3880c48227656d2b4a823cd66a6d5c74af0 (diff) |
guard against missing paragraph container
Change-Id: I6ac074c7fe2821983b4a056e28fc5379f7a93974
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwppara.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwppara.hxx b/lotuswordpro/source/filter/lwppara.hxx index 6e77876dde7f..a6d7563a2bf2 100644 --- a/lotuswordpro/source/filter/lwppara.hxx +++ b/lotuswordpro/source/filter/lwppara.hxx @@ -323,6 +323,8 @@ inline OUString LwpPara::GetBulletStyleName() const } inline void LwpPara::AddXFContent(XFContent* pCont) { + if (!m_pXFContainer) + throw std::runtime_error("paragraph lacks container"); m_pXFContainer->Add(pCont); } inline void LwpPara::SetXFContainer(XFContentContainer* pCont) |