diff options
author | David Tardon <dtardon@redhat.com> | 2014-11-03 17:35:08 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-11-03 18:50:59 +0100 |
commit | c982e6f50e7ad28b944e617c4be4d2b24d5bd682 (patch) | |
tree | 6939c17a65bb6ce492838796ce67134bd097cba5 /unoxml | |
parent | 358b2f45c34a63a5513ddb05af9f5cff1f39612e (diff) |
coverity#982488 unchecked dynamic_cast
Change-Id: I7008b3a96400a4d1520a03d985c0b421ff587bcb
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/document.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx index 40b3ce71a855..d7af99d16c09 100644 --- a/unoxml/source/dom/document.cxx +++ b/unoxml/source/dom/document.cxx @@ -441,6 +441,7 @@ namespace DOM ::rtl::Reference< CAttr > const pCAttr( dynamic_cast< CAttr* >(GetCNode( reinterpret_cast<xmlNodePtr>(pAttr)).get())); + if (!pCAttr.is()) { throw RuntimeException(); } pCAttr->m_bUnlinked = true; return pCAttr.get(); }; |