diff options
Diffstat (limited to 'runtime/obj.c')
-rw-r--r-- | runtime/obj.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/obj.c b/runtime/obj.c index 03d25cdc..99ccc923 100644 --- a/runtime/obj.c +++ b/runtime/obj.c @@ -921,7 +921,9 @@ objDeserializeWithMethods(void *ppObj, uchar *pszTypeExpected, int lenTypeExpect CHKiRet(fFixup(pObj, pUsr)); /* we have a valid object, let's finalize our work and return */ - CHKiRet(objConstructFinalize(pObj)); + if(objConstructFinalize != NULL) { + CHKiRet(objConstructFinalize(pObj)); + } *((obj_t**) ppObj) = pObj; |