microsoft / appcenter-sdk-apple

Development repository for the App Center SDK for iOS, macOS and tvOS.
Other
565 stars 224 forks source link

[Fix] Fixes the system exception when initializing NSString from `exceptionReason` with nil value #2530

Closed ForeverQ closed 5 months ago

ForeverQ commented 8 months ago

Description

We encountered a system exception on Outlook iOS when [NSString stringWithString:report.exceptionInfo.exceptionReason]; tried to create a string from a nil value. This PR prevents this by checking that exceptionReason is not nil before using it.

MikhailSuendukov commented 7 months ago

Hello and thanks for your contribution! We noticed that you also opened a PR in the PLCrashReporter repository, where you also processed this behavior. I suggest continuing the discussion in that pull request.

DmitriyKirakosyan commented 5 months ago

Closing due to inactivity.