From ab615e29eba8557197f5f462d25dd18af47764d3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 28 Jan 2014 13:40:26 +0000 Subject: coverity#705895 Dereference before null check Change-Id: I94e7507654e95b15338e1c467de59bf45b3077b0 --- svx/source/form/fmshimp.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'svx') 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); -- cgit