Skip to content

Commit

Permalink
fix: test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore committed Nov 10, 2024
1 parent d2966be commit 6cb1c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/RuntimeUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal static T GetOrAddComponent<T>(this Component obj) where T : Component
[CanBeNull]
public static string RelativePath(GameObject root, GameObject child)
{
return RelativePath(root.transform, child.transform);
return RelativePath(root?.transform, child?.transform);
}

/// <summary>
Expand Down

0 comments on commit 6cb1c5e

Please sign in to comment.