From 26d1d78204f53b47b9c56b4eafcd60608a41914f Mon Sep 17 00:00:00 2001 From: Tom Andrews Date: Sun, 10 Mar 2019 22:55:13 +0000 Subject: [PATCH] Fixed: Group sentry NRE events across platforms --- src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs index f88173afe..54d2cc337 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs @@ -267,7 +267,8 @@ namespace NzbDrone.Common.Instrumentation.Sentry if (message.IsNotNullOrWhiteSpace() && message.Length < 200) { - sentryFingerprint.Add(message); + // Windows gives a trailing '.' for NullReferenceException but mono doesn't + sentryFingerprint.Add(message.TrimEnd('.')); } } }