Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[cloud_firestore] ios check for nil snapshot in cloud_firestore error handling instead of checking for non-nil error #1339

Merged
merged 3 commits into from
Mar 14, 2019

Conversation

collinjackson
Copy link
Contributor

@collinjackson collinjackson commented Mar 14, 2019

Fixes flutter/flutter#15837

iOS only

In addition to making our iOS plugin usage of the API match the docs, this also fixes a case where we were returning from method call twice in an error case.

on Android we check if the error is not null per the example code.

@collinjackson collinjackson changed the title Check for nil snapshot in cloud_firestore error handling instead of checking for non-nil error [cloud_firestore] Check for nil snapshot in cloud_firestore error handling instead of checking for non-nil error Mar 14, 2019
@collinjackson collinjackson changed the title [cloud_firestore] Check for nil snapshot in cloud_firestore error handling instead of checking for non-nil error [cloud_firestore] ios ceck for nil snapshot in cloud_firestore error handling instead of checking for non-nil error Mar 14, 2019
Copy link
Contributor

@cyanglaz cyanglaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@collinjackson collinjackson merged commit 228b40f into flutter:master Mar 14, 2019
@collinjackson collinjackson changed the title [cloud_firestore] ios ceck for nil snapshot in cloud_firestore error handling instead of checking for non-nil error [cloud_firestore] ios check for nil snapshot in cloud_firestore error handling instead of checking for non-nil error Mar 15, 2019
julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
…handling instead of checking for non-nil error (flutter#1339)

* Check for nil snapshot in cloud_firestore error handling instead of checking for non-nil error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cloud_firestore] FirebaseAuth.instance.signOut() causes crash
3 participants