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

coverity#1213129 Dereference after null check

Change-Id: I2d427a187e9a9554ffce6cedbc6cda087b838c96
üst 0d3df937
...@@ -120,7 +120,7 @@ void SwFlyAtCntFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew ) ...@@ -120,7 +120,7 @@ void SwFlyAtCntFrm::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew )
// check, if at found anchor frame candidate already a fly frame // check, if at found anchor frame candidate already a fly frame
// of the given fly frame format is registered. // of the given fly frame format is registered.
bFound = aOldIdx == aNewIdx; bFound = aOldIdx == aNewIdx;
if ( bFound && pCntnt->GetDrawObjs() ) if (bFound && pCntnt && pCntnt->GetDrawObjs())
{ {
SwFrmFmt* pMyFlyFrmFmt( &GetFrmFmt() ); SwFrmFmt* pMyFlyFrmFmt( &GetFrmFmt() );
SwSortedObjs &rObjs = *pCntnt->GetDrawObjs(); SwSortedObjs &rObjs = *pCntnt->GetDrawObjs();
......
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