From f8b73fdc3bbbdf707985798f724be92821f7b4f8 Mon Sep 17 00:00:00 2001 From: PrPleGoo Date: Sun, 5 Apr 2020 11:45:23 +0200 Subject: [PATCH] Fix null-state handling for InjectorComponent --- .../GameObjects/Components/Chemistry/InjectorComponent.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Client/GameObjects/Components/Chemistry/InjectorComponent.cs b/Content.Client/GameObjects/Components/Chemistry/InjectorComponent.cs index 272a67d964..4d46ddf5f0 100644 --- a/Content.Client/GameObjects/Components/Chemistry/InjectorComponent.cs +++ b/Content.Client/GameObjects/Components/Chemistry/InjectorComponent.cs @@ -30,6 +30,10 @@ namespace Content.Client.GameObjects.Components.Chemistry //Handle net updates public override void HandleComponentState(ComponentState curState, ComponentState nextState) { + if(curState == null) + { + return; + } if(curState.GetType() == typeof(InjectorComponentState)) { var cast = (InjectorComponentState) curState;