diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-25 11:35:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-25 11:46:57 +0100 |
commit | 09d79da135fcf7a16e7b692cf0264cc5432f57b4 (patch) | |
tree | 0d96ba9d68585af0c46b53f14f53b599468e99f4 /codemaker | |
parent | 219eb78e3a04d859fa107c5b0c5ff40f4524c4d2 (diff) |
coverity#1219788 Unchecked dynamic_cast
Change-Id: I1bedfb601320bc27adc0d0d72fcb8b3c5dfe73ff
Diffstat (limited to 'codemaker')
-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 83d0a41033a7..5887635e9841 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -3039,6 +3039,9 @@ bool ExceptionType::dumpBaseMembers( rtl::Reference< unoidl::ExceptionTypeEntity > ent2( dynamic_cast< unoidl::ExceptionTypeEntity * >(ent.get())); assert(ent2.is()); + if (!ent2.is()) { + return false; + } hasMember = dumpBaseMembers( out, ent2->getDirectBase(), withType, eligibleForDefaults && ent2->getDirectMembers().empty() ); int memberCount = 0; |