Kaydet (Commit) 48ab20b7 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#704853 Unchecked dynamic_cast

Change-Id: I94e03ce14fdcd7fde99992e57d9f30c75c6e8fa1
üst 2ad11da9
......@@ -71,7 +71,7 @@ SwUnoTableCrsr * SwUnoTableCrsr::Clone() const
GetDoc()->CreateUnoCrsr(
*GetPoint(), true /* create SwUnoTableCrsr */ ) );
OSL_ENSURE(pNewCrsr, "Clone: cannot create SwUnoTableCrsr?");
if (HasMark())
if (pNewCrsr && HasMark())
{
pNewCrsr->SetMark();
*pNewCrsr->GetMark() = *GetMark();
......
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