From da39d186377b002bf87561a9fb7676096d8f9951 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sat, 5 Dec 2020 18:57:04 +0100 Subject: [PATCH] Fix rare NRE in atmos --- .../GameObjects/Components/Atmos/GridAtmosphereComponent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Atmos/GridAtmosphereComponent.cs b/Content.Server/GameObjects/Components/Atmos/GridAtmosphereComponent.cs index 0b2202cef8..46897da16c 100644 --- a/Content.Server/GameObjects/Components/Atmos/GridAtmosphereComponent.cs +++ b/Content.Server/GameObjects/Components/Atmos/GridAtmosphereComponent.cs @@ -587,7 +587,8 @@ namespace Content.Server.GameObjects.Components.Atmos while (_currentRunTiles.Count > 0) { var tile = _currentRunTiles.Dequeue(); - tile.EqualizePressureInZone(UpdateCounter); + // ReSharper disable once ConstantConditionalAccessQualifier + tile?.EqualizePressureInZone(UpdateCounter); if (number++ < LagCheckIterations) continue; number = 0;