summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-11 09:52:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-11 12:11:41 +0000
commita7302614748f103c4ba8987224c1e89e993d6edb (patch)
treeb0ec3f53022c35c70b6c7109b8dc1182a3e29791 /sw
parent03bdb83f5ce6974cb7a22120eddc0b6bb5d7225d (diff)
coverity#704930 Dereference after null check
Change-Id: I268945b00e0470f5aade3022fd676a2a69d2590d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/porfly.cxx3
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,