Skip to content

Commit 7fde234

Browse files
committed
add unwrap to satisfy analyzer
1 parent c381cdf commit 7fde234

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/Sentry/SentryCrashReportConverter.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ - (SentryThread *_Nullable)threadAtIndex:(NSInteger)threadIndex
278278
SENTRY_LOG_ERROR(@"Thread index is not a number: %@", threadIndexObj);
279279
return nil;
280280
}
281-
SentryThread *thread = [[SentryThread alloc] initWithThreadId:threadIndexObj];
281+
SentryThread *thread =
282+
[[SentryThread alloc] initWithThreadId:SENTRY_UNWRAP_NULLABLE(NSNumber, threadIndexObj)];
282283
// We only want to add the stacktrace if this thread hasn't crashed
283284
thread.stacktrace = [self stackTraceForThreadIndex:threadIndex];
284285
if (thread.stacktrace.frames.count == 0) {

0 commit comments

Comments
 (0)