summaryrefslogtreecommitdiff
path: root/sfx2/source/view/sfxbasecontroller.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-11 13:34:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-11 13:53:24 +0000
commit266cbbdfc975ac058ca989b87d372898f49578db (patch)
tree75dd4c206ac8cedebdd041ef3d8ebf0e8a94c73b /sfx2/source/view/sfxbasecontroller.cxx
parent7f8b1b58f48e5593441b29d723eac8dc396c55ed (diff)
coverity#441017 Dereference before null check
Change-Id: I3df33251d72266afb43532bee07058e691a6cf66
Diffstat (limited to 'sfx2/source/view/sfxbasecontroller.cxx')
-rw-r--r--sfx2/source/view/sfxbasecontroller.cxx2
1 files changed, 1 insertions, 1 deletions
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 )