diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-19 12:25:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-19 15:37:56 +0000 |
commit | b9b8ddb60ec57df04828e9386c97d8bc6d12d34c (patch) | |
tree | fd45eb23733bc08d863bd7b4de0c014d0c5408bf /lotuswordpro | |
parent | 6ebaafcc8b8dcce42f2752943dc0b76ad2edce0c (diff) |
coverity#735756 Unchecked dynamic_cast
Change-Id: Iaa2bc4bca3e0fe3d88cefb8c9285f771ecb49cb4
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index 169af71e3903..a92720dbfc6f 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -873,7 +873,7 @@ XFCell* LwpHiddenCellLayout::ConvertCell(LwpObjectID aTableID, sal_uInt16 nRow, return NULL; LwpConnectedCellLayout* pConnCell = dynamic_cast<LwpConnectedCellLayout* >(cconnectedlayout.obj()); - if (nRow < (pConnCell->GetNumrows()+pConnCell->GetRowID())) + if (!pConnCell || nRow < (pConnCell->GetNumrows()+pConnCell->GetRowID())) return NULL; // if the hidden cell should be displayed for limit of SODC // use the default cell layout |