coverity#1265802 Dereference null return value
Change-Id: I1ad3470410ef3a1f4f06033c89da9adcb640b7e0
This commit is contained in:
@@ -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 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user