Skip to content

Fix crash in additionalTokenRefreshParameters when emmSupport is nil#608

Open
AkshatG6 wants to merge 1 commit into
mainfrom
gandhiakshat/fix-emm-support-crash
Open

Fix crash in additionalTokenRefreshParameters when emmSupport is nil#608
AkshatG6 wants to merge 1 commit into
mainfrom
gandhiakshat/fix-emm-support-crash

Conversation

@AkshatG6

Copy link
Copy Markdown
Contributor

Overview
This PR fixes an edge case missed by the previous fix for the Swift casting crash in additionalTokenRefreshParameters (#564).

The Problem
The previous fix correctly converted non-string values (like NSNumber) into their NSString representations to avoid a Swift type mismatch exception. However, it missed the scenario where emmSupport is nil or NO. In that case, [GIDEMMSupport parametersWithParameters:emmSupport:isPasscodeInfoRequired:] returned the original parameters dictionary early, bypassing the newly added string conversion helper.

The Fix
This change updates the early return block to apply [GIDEMMSupport dictionaryWithStringValuesFromDictionary:parameters], ensuring that the dictionary is safely stringified regardless of the emmSupport configuration.

@AkshatG6
AkshatG6 requested a review from w-goog July 23, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant