Skip to content

Commit

Permalink
fix: NullReferenceError when there are missing components
Browse files Browse the repository at this point in the history
Closes: #519
  • Loading branch information
bdunderscore committed Jan 25, 2025
1 parent e0dc5ec commit f955f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/ChangeStream/ShadowGameObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ internal int[] CurrentComponentStructure

for (var i = 0; i < comps.Length; i++)
{
instanceIds[i] = comps[i].GetInstanceID();
instanceIds[i] = comps[i]?.GetInstanceID() ?? 0;
}

return instanceIds;
Expand Down

0 comments on commit f955f96

Please sign in to comment.