summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codemaker/source/cppumaker/cpputype.cxx3
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());