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

coverity#705506 Dereference null return value

Change-Id: Id5676b391037d5fbee3bba0df1ee1e312dcb775c
üst 6cf39bbe
......@@ -2280,7 +2280,8 @@ void SwXFrame::attachToRange(const uno::Reference< text::XTextRange > & xTextRan
{
SwGrfNode *pGrfNd = pDoc->GetNodes()[ pFmt->GetCntnt().GetCntntIdx()
->GetIndex()+1 ]->GetGrfNode();
pGrfNd->SetChgTwipSize( !bSizeFound );
if (pGrfNd)
pGrfNd->SetChgTwipSize( !bSizeFound );
pFmt->Add(this);
if(!m_sName.isEmpty())
pDoc->SetFlyName((SwFlyFrmFmt&)*pFmt, m_sName);
......
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