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

coverity#1265802 Dereference null return value

Change-Id: I1ad3470410ef3a1f4f06033c89da9adcb640b7e0
üst 58f88c96
...@@ -1170,9 +1170,8 @@ void SdPageObjsTLB::StartDrag( sal_Int8 nAction, const Point& rPosPixel) ...@@ -1170,9 +1170,8 @@ void SdPageObjsTLB::StartDrag( sal_Int8 nAction, const Point& rPosPixel)
*/ */
void SdPageObjsTLB::DoDrag() void SdPageObjsTLB::DoDrag()
{ {
mpDropNavWin = ( mpFrame->HasChildWindow( SID_NAVIGATOR ) ) ? SfxChildWindow* pWnd = mpFrame->HasChildWindow(SID_NAVIGATOR) ? mpFrame->GetChildWindow(SID_NAVIGATOR) : NULL;
static_cast<SdNavigatorWin*>( mpFrame->GetChildWindow( SID_NAVIGATOR )->GetContextWindow( SD_MOD() ) ) : mpDropNavWin = pWnd ? static_cast<SdNavigatorWin*>(pWnd->GetContextWindow(SD_MOD())) : NULL;
NULL;
if( mpDropNavWin ) if( mpDropNavWin )
{ {
......
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