From b40d92c467871e7d1b2343b58712ad54de7b24fc Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Sun, 31 May 2026 00:38:49 -0700 Subject: [PATCH] (Try to) Fix a null reference exception in ComponentTreeSystem.UpdateTreePositions --- Robust.Shared/ComponentTrees/ComponentTreeSystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Robust.Shared/ComponentTrees/ComponentTreeSystem.cs b/Robust.Shared/ComponentTrees/ComponentTreeSystem.cs index ded59959fe0..eaae8fab41e 100644 --- a/Robust.Shared/ComponentTrees/ComponentTreeSystem.cs +++ b/Robust.Shared/ComponentTrees/ComponentTreeSystem.cs @@ -242,9 +242,9 @@ public void UpdateTreePositions() { (pos, rot) = XformSystem.GetRelativePositionRotation( entry.Transform, - newTree!.Value); + newTree.Value); - newTreeComp!.Tree.Update(entry, ExtractAabb(entry, pos, rot)); + newTreeComp?.Tree.Update(entry, ExtractAabb(entry, pos, rot)); continue; } @@ -258,7 +258,7 @@ public void UpdateTreePositions() (pos, rot) = XformSystem.GetRelativePositionRotation( entry.Transform, - newTree!.Value); + newTree.Value); newTreeComp.Tree.Add(entry, ExtractAabb(entry, pos, rot)); }