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

coverity#735839 Dereference after null check

Change-Id: I1d07802f2671c460dbe145c4d5178aff272ca091
üst 6c7d2e39
......@@ -70,7 +70,7 @@ void FuThesaurus::DoExecute( SfxRequest& )
SfxErrorContext aContext(ERRCTX_SVX_LINGU_THESAURUS, OUString(),
mpWindow, RID_SVXERRCTX, &DIALOG_MGR() );
if( mpViewShell && mpViewShell->ISA(DrawViewShell) )
if (mpViewShell && mpViewShell->ISA(DrawViewShell))
{
SdrTextObj* pTextObj = NULL;
......@@ -117,7 +117,7 @@ void FuThesaurus::DoExecute( SfxRequest& )
}
}
}
else if ( mpViewShell->ISA(OutlineViewShell) )
else if (mpViewShell && mpViewShell->ISA(OutlineViewShell))
{
Outliner* pOutliner = mpDoc->GetOutliner();
OutlinerView* pOutlView = pOutliner->GetView(0);
......
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