summaryrefslogtreecommitdiff
path: root/lotuswordpro
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:57:08 +0000
commitd2a9d99db0d439f13fab50845b043bf30487f5cb (patch)
tree9d5056c01f24aad917072ae05d17300c1e5a7e5c /lotuswordpro
parent57e86b666f0f596dfb8a9a4c0c3adb5910a4b9bf (diff)
guard against missing table
Change-Id: I00bde6564be6fb7c7f6d2ccb1faa7dd94e414635 (cherry picked from commit 0034019480167d50df33865389a6d21e8d5b9cec)
Diffstat (limited to 'lotuswordpro')
-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;
}