diff --git a/CHANGELOG.md b/CHANGELOG.md index cd47c09fa..29839f2df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ ### Fixes -- Fixed crashes when adding breadcrumbs on iOS/macOS. This was caused by invalid date parsing and corrupted string data in the native bridge responsible for scope sync ([#2327](https://github.com/getsentry/sentry-unity/pull/2327)) +- Fixed crashes when adding breadcrumbs on iOS/macOS. This was caused by invalid date parsing and corrupted string data in the native bridge responsible for scope sync ([#2327](https://github.com/getsentry/sentry-unity/pull/2327), [#2338](https://github.com/getsentry/sentry-unity/pull/2338)) - Fixed input handling in samples to work with old and new input system ([#2319](https://github.com/getsentry/sentry-unity/pull/2319)) - The SDK now captures exceptions on WebGL through the logging integration instead of the incompatible log handler, providing better stack trace support . ([#2322](https://github.com/getsentry/sentry-unity/pull/2322)) - Fixed input handling in samples to work with old and new input system. ([#2319](https://github.com/getsentry/sentry-unity/pull/2319)) diff --git a/package-dev/Plugins/iOS/SentryNativeBridge.m b/package-dev/Plugins/iOS/SentryNativeBridge.m index be28d5a6d..56be7ca2b 100644 --- a/package-dev/Plugins/iOS/SentryNativeBridge.m +++ b/package-dev/Plugins/iOS/SentryNativeBridge.m @@ -108,7 +108,10 @@ void SentryNativeBridgeAddBreadcrumb( category:categoryString]; if (timestampString != nil && timestampString.length > 0) { - breadcrumb.timestamp = [sentry_cachedISO8601Formatter() dateFromString:timestampString]; + NSDate *date = [sentry_cachedISO8601Formatter() dateFromString:timestampString]; + if (date != nil) { + breadcrumb.timestamp = date; + } } if (messageString != nil) {