Kaydet (Commit) 3008cb63 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#704688 Unchecked dynamic cast

Change-Id: Ie93b4be8ce0de0a2ba311df998316b81bd1838ef
üst 5aed4328
......@@ -1872,7 +1872,11 @@ void ScModule::AddRefEntry() // "Mehrfachselektion"
if ( pChildWnd )
{
IAnyRefDialog* pRefDlg = dynamic_cast<IAnyRefDialog*>(pChildWnd->GetWindow());
pRefDlg->AddRefEntry();
assert(pRefDlg);
if(pRefDlg)
{
pRefDlg->AddRefEntry();
}
}
else if(pModalDlg)
pModalDlg->AddRefEntry();
......
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