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

coverity#1265804 Dereference null return value

Change-Id: Ie5622275aa5534714001ad04cf0ae4af365b3a9c
üst 428f51c7
...@@ -40,8 +40,11 @@ void ScDrawShell::GetFormTextState(SfxItemSet& rSet) ...@@ -40,8 +40,11 @@ void ScDrawShell::GetFormTextState(SfxItemSet& rSet)
sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId(); sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId();
SfxViewFrame* pViewFrm = pViewData->GetViewShell()->GetViewFrame(); SfxViewFrame* pViewFrm = pViewData->GetViewShell()->GetViewFrame();
if ( pViewFrm->HasChildWindow(nId) ) if (pViewFrm->HasChildWindow(nId))
pDlg = static_cast<SvxFontWorkDialog*>(pViewFrm->GetChildWindow(nId)->GetWindow()); {
SfxChildWindow* pWnd = pViewFrm->GetChildWindow(nId);
pDlg = pWnd ? static_cast<SvxFontWorkDialog*>(pWnd->GetWindow()) : NULL;
}
if ( rMarkList.GetMarkCount() == 1 ) if ( rMarkList.GetMarkCount() == 1 )
pObj = rMarkList.GetMark(0)->GetMarkedSdrObj(); 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