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

coverity#705517 Dereference null return value

Change-Id: I797e302d71f45f618985fe2470a0428ff8452107
üst e6fd5873
...@@ -444,7 +444,8 @@ void SwDocShell::Execute(SfxRequest& rReq) ...@@ -444,7 +444,8 @@ void SwDocShell::Execute(SfxRequest& rReq)
else else
pTmpFrm = SfxViewFrame::GetFirst( this ); pTmpFrm = SfxViewFrame::GetFirst( this );
pTmpFrm->GetDispatcher()->Execute( nSlotId, 0, 0, SFX_CALLMODE_ASYNCHRON ); if (pTmpFrm)
pTmpFrm->GetDispatcher()->Execute( nSlotId, 0, 0, SFX_CALLMODE_ASYNCHRON );
} }
rReq.SetReturnValue(SfxBoolItem(SID_PRINTPREVIEW, bSet )); rReq.SetReturnValue(SfxBoolItem(SID_PRINTPREVIEW, bSet ));
......
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