Skip to content

Commit

Permalink
Error when joint follower data is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-shariff committed Jan 16, 2024
1 parent 440daa2 commit 25f42c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Runtime/Tracking/JointFollower.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ private void SubscribeHandSubsystem()
if (handSubsystem == null)
return;

if (jointFollowerData.Value == null)
{
Debug.LogError($"jointFollowerData is not set. Not subscribgin to events");
return;
}

handSubsystem.updatedHands += OnUpdatedHands;
}

Expand Down

0 comments on commit 25f42c0

Please sign in to comment.