From a6b26a18689f1987afbad9a4d992e6196440c2b7 Mon Sep 17 00:00:00 2001 From: T'kael Date: Sat, 10 Aug 2024 16:29:40 -0700 Subject: [PATCH] Don't send missions data to Inara when the origin system is null / empty. Resolve Rollbar# 26372. --- InaraResponder/InaraResponder.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InaraResponder/InaraResponder.cs b/InaraResponder/InaraResponder.cs index ce439ff81b..22e48b3eb7 100644 --- a/InaraResponder/InaraResponder.cs +++ b/InaraResponder/InaraResponder.cs @@ -560,6 +560,11 @@ private void handleMissionAcceptedEvent(MissionAcceptedEvent @event) { eventData.Add( "starsystemNameOrigin", @event.Mission.originsystem ); } + else + { + // `starsystemNameOrigin` is a required property to submit this data to Inara + return; + } if ( !string.IsNullOrEmpty(@event.Mission.originstation)) { eventData.Add("stationNameOrigin", @event.Mission.originstation);