diff --git a/native/cocos/scripting/js-bindings/manual/spine/jsb_cocos2dx_spine_manual.cpp b/native/cocos/scripting/js-bindings/manual/spine/jsb_cocos2dx_spine_manual.cpp index decc8e8832..b3afdd0fd1 100644 --- a/native/cocos/scripting/js-bindings/manual/spine/jsb_cocos2dx_spine_manual.cpp +++ b/native/cocos/scripting/js-bindings/manual/spine/jsb_cocos2dx_spine_manual.cpp @@ -400,7 +400,7 @@ jsval sptrackentry_to_jsval(JSContext* cx, spTrackEntry& v) ok &= JS_SetProperty(cx, entry, "animationLast", val); val.set(DOUBLE_TO_JSVAL(v.nextAnimationLast)); ok &= JS_SetProperty(cx, entry, "nextAnimationLast", val); - val.set(spanimation_to_jsval(cx, *v.animation)); + val.set(v.animation == nullptr ? JSVAL_NULL : spanimation_to_jsval(cx, *v.animation)); ok &= JS_SetProperty(cx, entry, "animation", val); if (ok) diff --git a/native/tools/bindings-generator b/native/tools/bindings-generator index 4eea234913..9fff9d2ffe 160000 --- a/native/tools/bindings-generator +++ b/native/tools/bindings-generator @@ -1 +1 @@ -Subproject commit 4eea2349134601545ede7d6bf6429cc91bd321dd +Subproject commit 9fff9d2ffefa0cfed20e90400fc693ec7e5a661b