summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 13:40:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 14:30:41 +0000
commitab615e29eba8557197f5f462d25dd18af47764d3 (patch)
tree1c68a73def132ddb0a1c4b185c08f779de226510 /svx
parentd6546c5da8e267c67245fe18a5d6970e65f28f21 (diff)
coverity#705895 Dereference before null check
Change-Id: I94e7507654e95b15338e1c467de59bf45b3077b0
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/fmshimp.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index 1a8794d5f438..3c6639035c44 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -664,8 +664,7 @@ FmXFormShell::FmXFormShell( FmFormShell& _rShell, SfxViewFrame* _pViewFrame )
m_aMarkTimer.SetTimeout(100);
m_aMarkTimer.SetTimeoutHdl(LINK(this,FmXFormShell,OnTimeOut));
- if ( _pViewFrame )
- m_xAttachedFrame = _pViewFrame->GetFrame().GetFrameInterface();
+ m_xAttachedFrame = _pViewFrame->GetFrame().GetFrameInterface();
// to prevent deletion of this we acquire our refcounter once
::comphelper::increment(FmXFormShell_BASE::m_refCount);