Kaydet (Commit) b9b8ddb6 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735756 Unchecked dynamic_cast

Change-Id: Iaa2bc4bca3e0fe3d88cefb8c9285f771ecb49cb4
üst 6ebaafcc
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment