2
0

Don't crash if decrypt fails.

This commit is contained in:
Maarten Billemont 2020-04-09 21:46:09 -04:00
parent fd6cbaa9a5
commit 8eeba2e005
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ static OSStatus MPHotKeyHander(EventHandlerCallRef nextHandler, EventRef theEven
@try { @try {
// Sentry // Sentry
[SentrySDK initWithOptions:@{ [SentrySDK initWithOptions:@{
@"dsn" : decrypt( sentryDSN ), @"dsn" : NilToNSNull( decrypt( sentryDSN ) ),
#ifdef DEBUG #ifdef DEBUG
@"debug" : @(YES), @"debug" : @(YES),
@"environment": @"Development", @"environment": @"Development",

View File

@ -45,7 +45,7 @@
@try { @try {
// Sentry // Sentry
[SentrySDK initWithOptions:@{ [SentrySDK initWithOptions:@{
@"dsn" : decrypt( sentryDSN ), @"dsn" : NilToNSNull( decrypt( sentryDSN ) ),
#ifdef DEBUG #ifdef DEBUG
@"debug" : @(YES), @"debug" : @(YES),
@"environment": @"Development", @"environment": @"Development",