coverity#1242426 Dereference after null check

Change-Id: I59c96846aa5bf4780e4c5bfb0b71242e3b928976
This commit is contained in:
Caolán McNamara
2014-10-14 13:12:02 +01:00
parent f9a90514de
commit 2fff4927c4

View File

@@ -296,8 +296,7 @@ bool DrawDocShell::CheckPageName (vcl::Window* pWin, OUString& rName )
{
aNameDlg->SetEditHelpId( HID_SD_NAMEDIALOG_PAGE );
if( mpViewShell )
aNameDlg->SetCheckNameHdl( LINK( this, DrawDocShell, RenameSlideHdl ) );
aNameDlg->SetCheckNameHdl( LINK( this, DrawDocShell, RenameSlideHdl ) );
rtl::Reference<FuPoor> xFunc( mpViewShell->GetCurrentFunction() );
if( xFunc.is() )