check for NULL handler.
This commit is contained in:
parent
f6be2ed08d
commit
80966dd286
@ -178,6 +178,8 @@ int Yap_CleanOpaqueVariable(CELL *pt)
|
|||||||
if (!GLOBAL_OpaqueHandlers)
|
if (!GLOBAL_OpaqueHandlers)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
blobp = (MP_INT *)(pt+2);
|
blobp = (MP_INT *)(pt+2);
|
||||||
|
if (!GLOBAL_OpaqueHandlers[blob_info].fail_handler)
|
||||||
|
return TRUE;
|
||||||
return (GLOBAL_OpaqueHandlers[blob_info].fail_handler)((void *)(blobp+1));
|
return (GLOBAL_OpaqueHandlers[blob_info].fail_handler)((void *)(blobp+1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user