summaryrefslogtreecommitdiff
path: root/lotuswordpro/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-12 20:56:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-12 20:56:36 +0000
commit0034019480167d50df33865389a6d21e8d5b9cec (patch)
treeb8cd1a3a4ec40d3271fc701922ab14d471d6f25a /lotuswordpro/source
parent13eaf4dad1324b4f2d909424b2bf06f75102f01f (diff)
guard against missing table
Change-Id: I00bde6564be6fb7c7f6d2ccb1faa7dd94e414635
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r--lotuswordpro/source/filter/lwpcelllayout.cxx6
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;
}