diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-27 20:21:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-27 23:00:43 +0000 |
commit | 6198aa8c14ade1c0d82316411d128aa8175552b7 (patch) | |
tree | f3a170930b7d482ffe107e2ad2407685e3ed35cc | |
parent | ebe0cc11dadd57fcee5a8dc18278809e58db0075 (diff) |
coverity#1019325 Unchecked dynamic_cast
Change-Id: Ic1607eea119a7321f65b0a0145a263a03406ed6d
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index 5c015c93c2b0..c76ef0d67548 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -2082,6 +2082,9 @@ bool PlainStructType::dumpBaseMembers( rtl::Reference< unoidl::PlainStructTypeEntity > ent2( dynamic_cast< unoidl::PlainStructTypeEntity * >(ent.get())); assert(ent2.is()); + if (!ent2.is()) { + return false; + } hasMember = dumpBaseMembers(out, ent2->getDirectBase(), withType); for (std::vector< unoidl::PlainStructTypeEntity::Member >:: const_iterator i(ent2->getDirectMembers().begin()); |