diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-12 20:56:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-12 20:56:36 +0000 |
commit | 0034019480167d50df33865389a6d21e8d5b9cec (patch) | |
tree | b8cd1a3a4ec40d3271fc701922ab14d471d6f25a /lotuswordpro | |
parent | 13eaf4dad1324b4f2d909424b2bf06f75102f01f (diff) |
guard against missing table
Change-Id: I00bde6564be6fb7c7f6d2ccb1faa7dd94e414635
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index 2e55f3db87c4..da49507105c8 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -762,7 +762,11 @@ LwpCellBorderType LwpConnectedCellLayout::GetCellBorderType(sal_uInt16 nRow, sal } } - if ( (nRow + nRowSpan) == pTableLayout->GetTable()->GetRow() ) + LwpTable* pTable = pTableLayout->GetTable(); + if (!pTable) + throw std::runtime_error("missing table"); + + if ( (nRow + nRowSpan) == pTable->GetRow()) { bNoBottomBorder = false; } |