Skip to content

Commit ded1135

Browse files
authored
fix: Crash when user feedback block is nil (#6642)
1 parent eaa359e commit ded1135

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
@@ -48,6 +48,7 @@
4848

4949
- Fixes warnings about minimum OS version being lower than Xcode supported version (#5591)
5050
- Fix rendering method for fast view rendering (#6360)
51+
- Fixes a crash when setting configureUserFeedback to nil (#6642)
5152
- Fix issue where the thread that generated an event could be missing when more than 100 threads are running (#6377)
5253
- 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)
5354
- 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)