Skip to content

Commit

Permalink
[Painter] Fix NRE in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sescalada committed Sep 27, 2023
1 parent 07e4cdc commit d244d85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private void UpdateHandTracking(bool subscribe)
var parent = cursor.Owner;
TrackXRController trackXRController = null;

while (trackXRController == null)
while (parent != null && trackXRController == null)
{
parent = parent.Parent;
trackXRController = parent?.FindComponent<TrackXRController>(isExactType: false);
Expand Down

0 comments on commit d244d85

Please sign in to comment.