Skip to content

[App Distribution] Fix crash caused by response being nil#7067

Merged
jeremydurham merged 2 commits into
masterfrom
fad/handle-nil-data
Dec 2, 2020
Merged

[App Distribution] Fix crash caused by response being nil#7067
jeremydurham merged 2 commits into
masterfrom
fad/handle-nil-data

Conversation

@jeremydurham
Copy link
Copy Markdown
Contributor

@jeremydurham jeremydurham commented Dec 1, 2020

When an error occurs, the response data will be nil. This causes a crash because we are trying to parse the response as JSON. Instead, return a generic error message if the response is nil.

Fixes #6996

@google-cla google-cla Bot added the cla: yes label Dec 1, 2020
When an error occurs, the response data will be nil. This causes a crash because we are trying to parse the response as JSON. Instead, return a generic error message if the response data is nil.
Comment thread FirebaseAppDistribution/CHANGELOG.md Outdated
@jeremydurham jeremydurham merged commit ad9e237 into master Dec 2, 2020
@jeremydurham jeremydurham deleted the fad/handle-nil-data branch December 2, 2020 04:10
@firebase firebase locked and limited conversation to collaborators Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AppDistribution: Fatal Exception: NSInvalidArgumentException data parameter is nil +[FIRFADApiService tryParseGoogleAPIErrorFromResponse:]

5 participants