summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-19 12:24:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-19 15:37:56 +0000
commit6ebaafcc8b8dcce42f2752943dc0b76ad2edce0c (patch)
tree5f072c9e33df5441359b2e9797c5236ae9caff82 /lotuswordpro
parent2c75e2953e80d0523d1807aac1f4d303d63807b3 (diff)
coverity#735755 Unchecked dynamic_cast
Change-Id: Ica94951214a33713844d5a9209d74eb4c67409f7
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpcelllayout.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx
index d82e207e6012..169af71e3903 100644
--- a/lotuswordpro/source/filter/lwpcelllayout.cxx
+++ b/lotuswordpro/source/filter/lwpcelllayout.cxx
@@ -663,8 +663,8 @@ void LwpCellLayout::ApplyProtect(XFCell * pCell, LwpObjectID aTableID)
{
// judge whole table
LwpTable * pTable = dynamic_cast<LwpTable *>(aTableID.obj());
- LwpTableLayout * pTableLayout = static_cast<LwpTableLayout *>(pTable->GetTableLayout());
- LwpSuperTableLayout * pSuper = pTableLayout->GetSuperTableLayout();
+ LwpTableLayout * pTableLayout = pTable ? static_cast<LwpTableLayout *>(pTable->GetTableLayout()) : NULL;
+ LwpSuperTableLayout * pSuper = pTableLayout ? pTableLayout->GetSuperTableLayout() : NULL;
if (pSuper && pSuper->IsProtected())
{
bProtected = sal_True;