Skip to content

Commit c00c42d

Browse files
committed
Add edm::TypeWithDict validity check in hasMemberTVirtualCollectionProxy
1 parent 564afd0 commit c00c42d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Fireworks/Core/src/FWItemAccessorFactory.cc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,19 @@ bool FWItemAccessorFactory::hasMemberTVirtualCollectionProxy(const TClass *iClas
159159

160160
edm::MemberWithDict member(*members.begin());
161161
edm::TypeWithDict memType(member.typeOf());
162-
assert(bool(memType));
162+
163+
if (bool(memType) == false) {
164+
fwLog(fwlog::kDebug) << "FWItemAccessorFactory::hasMemberTVirtualCollectionProxy memtype not exhisiting "
165+
<< iClass->GetName() << "\n";
166+
return false;
167+
}
168+
if (memType.invalidTypeInfo()) {
169+
fwLog(fwlog::kDebug) << "FWItemAccessorFactory::hasMemberTVirtualCollectionProxy class " << iClass->GetName()
170+
<< " has invalid member type." << std::endl
171+
<< memType << "\n";
172+
return false;
173+
}
174+
163175
oMember = TClass::GetClass(memType.typeInfo());
164176
oOffset = member.offset();
165177

0 commit comments

Comments
 (0)