diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-07 21:46:49 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-03-08 01:21:24 -0600 |
commit | 48ab20b710c37a395b27f98fa3bfe57886378126 (patch) | |
tree | f8a55e1109ff285e5714531ae878ecdffe39ef1f /sw | |
parent | 2ad11da98a327099894db526c36cdf2cdb0d7ae2 (diff) |
coverity#704853 Unchecked dynamic_cast
Change-Id: I94e03ce14fdcd7fde99992e57d9f30c75c6e8fa1
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/unocrsr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/crsr/unocrsr.cxx b/sw/source/core/crsr/unocrsr.cxx index 2237ab42491e..6d342698f855 100644 --- a/sw/source/core/crsr/unocrsr.cxx +++ b/sw/source/core/crsr/unocrsr.cxx @@ -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(); |