fix this pointer in op_callfunc_this

This commit is contained in:
Jeff Hutchinson 2018-04-12 23:14:57 -04:00
parent 12134ceb2b
commit c75eecbf53

View file

@ -2511,7 +2511,7 @@ OPCodeReturn CodeInterpreter::op_callfunc_this(U32 &ip)
ip += 2;
CSTK.getArgcArgv(fnName, &mCallArgc, &mCallArgv);
Namespace *ns = mThisObject->getNamespace();
Namespace *ns = mThisObject ? mThisObject->getNamespace() : NULL;
if (ns)
mNSEntry = ns->lookup(fnName);
else