Skip to content

Commit ef98d4d

Browse files
committed
fix: Crash when user feedback block is nil
1 parent 17a26bf commit ef98d4d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
- Fixes warnings about minimum OS version being lower than Xcode supported version (#5591)
4949
- Fix rendering method for fast view rendering (#6360)
50+
- Fixes a crash when setting configureUserFeedback to nil (#6642)
5051
- Fix issue where the thread that generated an event could be missing when more than 100 threads are running (#6377)
5152
- Fix wrong Frame Delay when becoming active, which lead to false reported app hangs when the app moves to the foreground after being in the background (#6381)
5253
- Session Replay masking improvements (#6292)

Sources/Sentry/SentryOptions.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ - (void)setConfigureUserFeedback:(SentryUserFeedbackConfigurationBlock)configure
395395
SentryUserFeedbackConfiguration *userFeedbackConfiguration =
396396
[[SentryUserFeedbackConfiguration alloc] init];
397397
self.userFeedbackConfiguration = userFeedbackConfiguration;
398-
configureUserFeedback(userFeedbackConfiguration);
398+
if (configureUserFeedback) {
399+
configureUserFeedback(userFeedbackConfiguration);
400+
}
399401
}
400402
#endif // TARGET_OS_IOS && SENTRY_HAS_UIKIT
401403

0 commit comments

Comments
 (0)