diff --git a/Content.Server/GameObjects/Components/Items/Storage/ItemComponent.cs b/Content.Server/GameObjects/Components/Items/Storage/ItemComponent.cs index 5fa3ad9df2..d750053df0 100644 --- a/Content.Server/GameObjects/Components/Items/Storage/ItemComponent.cs +++ b/Content.Server/GameObjects/Components/Items/Storage/ItemComponent.cs @@ -97,7 +97,7 @@ namespace Content.Server.GameObjects { return; } - if (!eventArgs.Attacked.TryGetComponent(out var placeableSurfaceComponent)) + if (eventArgs.Attacked == null || !eventArgs.Attacked.TryGetComponent(out var placeableSurfaceComponent)) { return; }