Skip to content

Commit 20257bd

Browse files
committed
fix: crash on non fatal
1 parent eaec607 commit 20257bd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ios/RNInstabug/InstabugCrashReportingBridge.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ + (BOOL)requiresMainQueueSetup
2929
RCT_EXPORT_METHOD(sendJSCrash:(NSDictionary *)stackTrace
3030
resolver:(RCTPromiseResolveBlock)resolve
3131
rejecter:(RCTPromiseRejectBlock)reject) {
32+
33+
if([fingerprint isKindOfClass:NSNull.class]){
34+
fingerprint = nil;
35+
}
36+
37+
if([userAttributes isKindOfClass:NSNull.class]){
38+
userAttributes = nil;
39+
}
3240
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0ul);
3341
dispatch_async(queue, ^{
3442
[IBGCrashReporting cp_reportFatalCrashWithStackTrace:stackTrace];

0 commit comments

Comments
 (0)