diff --git a/source/ContractConfigurator/Parameter/VesselParameter/VesselNotDestroyed.cs b/source/ContractConfigurator/Parameter/VesselParameter/VesselNotDestroyed.cs index 4b84e3a4..139fb84d 100644 --- a/source/ContractConfigurator/Parameter/VesselParameter/VesselNotDestroyed.cs +++ b/source/ContractConfigurator/Parameter/VesselParameter/VesselNotDestroyed.cs @@ -112,6 +112,11 @@ protected override void OnPartJointBreak(PartJoint p, float breakForce) base.OnPartJointBreak(p, breakForce); Vessel v = p.Parent.vessel; + if (v == null) + { + LoggingUtil.LogDebug(this, "OnPartJointBreak: p.Parent.vessel was null"); + return; + } LoggingUtil.LogVerbose(this, "OnPartJointBreak: {0}", v.id); if (v.vesselType == VesselType.Debris) {