From 8eeba2e0051bff739abbcea7bbee4fecb8bd1fce Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Thu, 9 Apr 2020 21:46:09 -0400 Subject: [PATCH] Don't crash if decrypt fails. --- platform-darwin/Source/Mac/MPMacAppDelegate.m | 2 +- platform-darwin/Source/iOS/MPiOSAppDelegate.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform-darwin/Source/Mac/MPMacAppDelegate.m b/platform-darwin/Source/Mac/MPMacAppDelegate.m index bbddc69a..4fd9f8d2 100644 --- a/platform-darwin/Source/Mac/MPMacAppDelegate.m +++ b/platform-darwin/Source/Mac/MPMacAppDelegate.m @@ -70,7 +70,7 @@ static OSStatus MPHotKeyHander(EventHandlerCallRef nextHandler, EventRef theEven @try { // Sentry [SentrySDK initWithOptions:@{ - @"dsn" : decrypt( sentryDSN ), + @"dsn" : NilToNSNull( decrypt( sentryDSN ) ), #ifdef DEBUG @"debug" : @(YES), @"environment": @"Development", diff --git a/platform-darwin/Source/iOS/MPiOSAppDelegate.m b/platform-darwin/Source/iOS/MPiOSAppDelegate.m index e6309441..4162849e 100644 --- a/platform-darwin/Source/iOS/MPiOSAppDelegate.m +++ b/platform-darwin/Source/iOS/MPiOSAppDelegate.m @@ -45,7 +45,7 @@ @try { // Sentry [SentrySDK initWithOptions:@{ - @"dsn" : decrypt( sentryDSN ), + @"dsn" : NilToNSNull( decrypt( sentryDSN ) ), #ifdef DEBUG @"debug" : @(YES), @"environment": @"Development",