If there is no information about class in the frame (when closure was called), pClassName should point always to NULL.
This commit is contained in:
parent
3e1d91e909
commit
f89af70ab2
|
@ -1787,7 +1787,11 @@ PH7_PRIVATE sxi32 VmExtractDebugTrace(ph7_vm *pVm, SySet *pDebugTrace, sxbool bA
|
|||
pClass = PH7_VmExtractActiveClass(pVm, iDepth++);
|
||||
if(pClass) {
|
||||
aTrace.pClassName = &pClass->sName;
|
||||
} else {
|
||||
aTrace.pClassName = NULL;
|
||||
}
|
||||
} else {
|
||||
aTrace.pClassName = NULL;
|
||||
}
|
||||
rc = SySetPut(pDebugTrace, (const void *)&aTrace);
|
||||
if(rc != SXRET_OK) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user