From 266cbbdfc975ac058ca989b87d372898f49578db Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 11 Mar 2014 13:34:17 +0000 Subject: coverity#441017 Dereference before null check Change-Id: I3df33251d72266afb43532bee07058e691a6cf66 --- sfx2/source/view/sfxbasecontroller.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2/source/view/sfxbasecontroller.cxx') diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx index 259250eef39b..4ddb95815a2e 100644 --- a/sfx2/source/view/sfxbasecontroller.cxx +++ b/sfx2/source/view/sfxbasecontroller.cxx @@ -358,7 +358,7 @@ void SAL_CALL IMPL_SfxBaseController_CloseListenerHelper::queryClosing( const la { SolarMutexGuard aGuard; SfxViewShell* pShell = m_pController->GetViewShell_Impl(); - if ( m_pController != NULL && pShell ) + if (pShell) { bool bCanClose = pShell->PrepareClose( sal_False ); if ( !bCanClose ) -- cgit