diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-13 11:07:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-13 14:03:26 +0000 |
commit | df9cd33b545e59745352f21c71aa897debf1858c (patch) | |
tree | 22757e46361c3230195b98378630edf2566ea5bc | |
parent | 6cf39bbe4cef84ca94ad55618eaa3f063db119b0 (diff) |
coverity#705506 Dereference null return value
Change-Id: Id5676b391037d5fbee3bba0df1ee1e312dcb775c
-rw-r--r-- | sw/source/core/unocore/unoframe.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx index 4d8cd3e76f3e..a6f6561fd0e6 100644 --- a/sw/source/core/unocore/unoframe.cxx +++ b/sw/source/core/unocore/unoframe.cxx @@ -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); |