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",