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

coverity#1343625 Unchecked dynamic_cast

Change-Id: Ib534e4e8ecf50a9159c5e98e2c899bf13f44c654
üst 26fddc31
...@@ -338,7 +338,7 @@ bool LwpMasterPage::IsNeedSection() ...@@ -338,7 +338,7 @@ bool LwpMasterPage::IsNeedSection()
//get story //get story
LwpStory* pStory = dynamic_cast<LwpStory*>(m_pPara->GetStoryID().obj().get()); LwpStory* pStory = dynamic_cast<LwpStory*>(m_pPara->GetStoryID().obj().get());
//if pagelayout is modified, register the pagelayout //if pagelayout is modified, register the pagelayout
if(pStory->IsPMModified()) if (pStory && pStory->IsPMModified())
{ {
bNewSection = pStory->IsNeedSection(); bNewSection = pStory->IsNeedSection();
} }
......
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