Kaydet (Commit) c8af68bc authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1265810 Dereference null return value

Change-Id: I3e99cfd189bae3ed37979dbbb69219b2649a9243
üst a7931847
...@@ -1329,8 +1329,11 @@ sal_Int8 SdPageObjsTLB::ExecuteDrop( const ExecuteDropEvent& rEvt ) ...@@ -1329,8 +1329,11 @@ sal_Int8 SdPageObjsTLB::ExecuteDrop( const ExecuteDropEvent& rEvt )
SdNavigatorWin* pNavWin = NULL; SdNavigatorWin* pNavWin = NULL;
sal_uInt16 nId = SID_NAVIGATOR; sal_uInt16 nId = SID_NAVIGATOR;
if( mpFrame->HasChildWindow( nId ) ) if (mpFrame->HasChildWindow(nId))
pNavWin = static_cast<SdNavigatorWin*>( mpFrame->GetChildWindow( nId )->GetContextWindow( SD_MOD() ) ); {
SfxChildWindow* pWnd = mpFrame->GetChildWindow(nId);
pNavWin = pWnd ? static_cast<SdNavigatorWin*>(pWnd->GetContextWindow(SD_MOD())) : NULL;
}
if( pNavWin && ( pNavWin == mpParent ) ) if( pNavWin && ( pNavWin == mpParent ) )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment