VOID_Orbital, VOID_Tools: Added some guards to prevent NREs when various vessel references are null.
[VOID.git] / VOID_Tools.cs
blob:a/VOID_Tools.cs -> blob:b/VOID_Tools.cs
--- a/VOID_Tools.cs
+++ b/VOID_Tools.cs
@@ -111,6 +111,11 @@
 
 		public static ExperimentSituations GetExperimentSituation(this Vessel vessel)
 		{
+			if (vessel == null)
+			{
+				return ExperimentSituations.SrfSplashed;
+			}
+
 			Vessel.Situations situation = vessel.situation;
 
 			switch (situation)