From 5918116e583847003a62089e514b1e138e32095e Mon Sep 17 00:00:00 2001 From: DRVeyl Date: Sun, 13 Feb 2022 17:06:26 -0500 Subject: [PATCH] Fix Loading Screen NRE --- src/RealAntennasProject/RACommNetVessel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RealAntennasProject/RACommNetVessel.cs b/src/RealAntennasProject/RACommNetVessel.cs index 1be707c..322dab3 100644 --- a/src/RealAntennasProject/RACommNetVessel.cs +++ b/src/RealAntennasProject/RACommNetVessel.cs @@ -94,7 +94,7 @@ protected override void OnDestroy() base.OnDestroy(); comm?.Net.Remove(comm); comm = null; - vessel.connection = null; + if (vessel) vessel.connection = null; } protected override void UpdateComm()