remove null reference during destroy on PoseEditor #159

Merged
altonjung merged 1 commit from main into main 2025-07-16 21:18:00 +00:00
altonjung commented 2025-07-16 13:01:02 +00:00 (Migrated from github.com)

issue:
when i try to exit studio, i meet null reference like below

NullReferenceException
at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component)
at HSPE.AMModules.BlendShapesEditor.OnDisable () [0x0003b] in <57951205e4844ff1af8e92ebb1481ac1>:0
at (wrapper delegate-invoke) .invoke_void()
at HSPE.PoseController.OnDisable () [0x00000] in <57951205e4844ff1af8e92ebb1481ac1>:0

solution:
check null pointer before variable used.

issue: when i try to exit studio, i meet null reference like below NullReferenceException at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component) at HSPE.AMModules.BlendShapesEditor.OnDisable () [0x0003b] in <57951205e4844ff1af8e92ebb1481ac1>:0 at (wrapper delegate-invoke) <Module>.invoke_void() at HSPE.PoseController.OnDisable () [0x00000] in <57951205e4844ff1af8e92ebb1481ac1>:0 solution: check null pointer before variable used.
ManlyMarco (Migrated from github.com) approved these changes 2025-07-16 21:17:23 +00:00
Sign in to join this conversation.
No description provided.