coverity#1219788 Unchecked dynamic_cast
Change-Id: I1bedfb601320bc27adc0d0d72fcb8b3c5dfe73ff
This commit is contained in:
parent
219eb78e3a
commit
09d79da135
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue