File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ + (BOOL)requiresMainQueueSetup
2929RCT_EXPORT_METHOD (sendJSCrash:(NSDictionary *)stackTrace
3030 resolver:(RCTPromiseResolveBlock)resolve
3131 rejecter:(RCTPromiseRejectBlock)reject) {
32+
3233 dispatch_queue_t queue = dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT, 0ul );
3334 dispatch_async (queue, ^{
3435 [IBGCrashReporting cp_reportFatalCrashWithStackTrace: stackTrace];
@@ -40,6 +41,14 @@ + (BOOL)requiresMainQueueSetup
4041 userAttributes:(nullable NSDictionary *)userAttributes fingerprint:(nullable NSString *)fingerprint nonFatalExceptionLevel:(IBGNonFatalLevel)nonFatalExceptionLevel
4142 resolver:(RCTPromiseResolveBlock)resolve
4243 rejecter:(RCTPromiseRejectBlock)reject) {
44+
45+ if ([fingerprint isKindOfClass: NSNull .class]){
46+ fingerprint = nil ;
47+ }
48+
49+ if ([userAttributes isKindOfClass: NSNull .class]){
50+ userAttributes = nil ;
51+ }
4352 dispatch_queue_t queue = dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_HIGH, 0ul );
4453 dispatch_async (queue, ^{
4554 [IBGCrashReporting cp_reportNonFatalCrashWithStackTrace: stackTrace level: nonFatalExceptionLevel groupingString: fingerprint userAttributes: userAttributes];
You can’t perform that action at this time.
0 commit comments