diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-11 09:52:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-11 12:11:41 +0000 |
commit | a7302614748f103c4ba8987224c1e89e993d6edb (patch) | |
tree | b0ec3f53022c35c70b6c7109b8dc1182a3e29791 /sw | |
parent | 03bdb83f5ce6974cb7a22120eddc0b6bb5d7225d (diff) |
coverity#704930 Dereference after null check
Change-Id: I268945b00e0470f5aade3022fd676a2a69d2590d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/porfly.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/text/porfly.cxx b/sw/source/core/text/porfly.cxx index bba00742fa93..72643ad8f960 100644 --- a/sw/source/core/text/porfly.cxx +++ b/sw/source/core/text/porfly.cxx @@ -336,6 +336,9 @@ void SwFlyCntPortion::SetBase( const SwTxtFrm& rFrm, const Point &rBase, pSdrObj = GetFlyFrm()->GetVirtDrawObj(); } + if (!pSdrObj) + return; + // position object objectpositioning::SwAsCharAnchoredObjectPosition aObjPositioning( *pSdrObj, |