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

coverity#1265808 Dereference null return value

Change-Id: Ib4ba32315a12a25ed5b9c4df5d6f88ee0400d054
üst 819d7342
......@@ -92,8 +92,11 @@ void DrawViewShell::GetFormTextState(SfxItemSet& rSet)
sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId();
if ( GetViewFrame()->HasChildWindow(nId) )
pDlg = static_cast<SvxFontWorkDialog*>(GetViewFrame()->GetChildWindow(nId)->GetWindow());
if (GetViewFrame()->HasChildWindow(nId))
{
SfxChildWindow* pWnd = GetViewFrame()->GetChildWindow(nId);
pDlg = pWnd ? static_cast<SvxFontWorkDialog*>(pWnd->GetWindow()) : NULL;
}
if ( rMarkList.GetMarkCount() == 1 )
pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
......
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