- fixed ZScript compiler crash with dereferencing null pointers

This commit is contained in:
Christoph Oelckers 2020-04-29 07:57:17 +02:00 committed by drfrag
parent df1e469163
commit ae882d983a

View file

@ -6485,7 +6485,7 @@ FxExpression *FxMemberIdentifier::Resolve(FCompileContext& ctx)
if (Object->ValueType->isRealPointer())
{
auto ptype = Object->ValueType->toPointer()->PointedType;
if (ptype->isContainer())
if (ptype && ptype->isContainer())
{
auto ret = ResolveMember(ctx, ctx.Class, Object, static_cast<PContainerType *>(ptype));
delete this;