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
29
29
RCT_EXPORT_METHOD (sendJSCrash:(NSDictionary *)stackTrace
30
30
resolver:(RCTPromiseResolveBlock)resolve
31
31
rejecter:(RCTPromiseRejectBlock)reject) {
32
+
32
33
dispatch_queue_t queue = dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT, 0ul );
33
34
dispatch_async (queue, ^{
34
35
[IBGCrashReporting cp_reportFatalCrashWithStackTrace: stackTrace];
@@ -40,6 +41,14 @@ + (BOOL)requiresMainQueueSetup
40
41
userAttributes:(nullable NSDictionary *)userAttributes fingerprint:(nullable NSString *)fingerprint nonFatalExceptionLevel:(IBGNonFatalLevel)nonFatalExceptionLevel
41
42
resolver:(RCTPromiseResolveBlock)resolve
42
43
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
+ }
43
52
dispatch_queue_t queue = dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_HIGH, 0ul );
44
53
dispatch_async (queue, ^{
45
54
[IBGCrashReporting cp_reportNonFatalCrashWithStackTrace: stackTrace level: nonFatalExceptionLevel groupingString: fingerprint userAttributes: userAttributes];
You can’t perform that action at this time.
0 commit comments