- fixed ZScript compiler crash with dereferencing null pointers

This commit is contained in:
Christoph Oelckers 2020-04-29 07:57:17 +02:00
parent 66bac45615
commit 2adf1c6a6b

View file

@ -6362,7 +6362,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;