Skip to content

Conversation

protocol86
Copy link
Contributor

Adds nil check for completion handlers to avoid crashes.

Copy link
Contributor

@yramanchuk yramanchuk left a comment

Choose a reason for hiding this comment

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

You can add "NS_ASSUME_NONNULL_BEGIN / END" to make sure that all other block params are not nullable.

Please add checks here as well:
e412303?diff=unified#diff-61c78c5fed9d99346ed86cc554a3c3afR2764

Copy link
Contributor

@yramanchuk yramanchuk left a comment

Choose a reason for hiding this comment

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

Zsika, you haven't fixed this place:



/*! @typedef textInputCompletionBlock
NS_ASSUME_NONNULL_BEGIN
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added line break.

@protocol86 protocol86 merged commit 6839851 into master Dec 15, 2017
@protocol86 protocol86 deleted the fixes_crash_when_unlinking_provider branch December 15, 2017 00:20
gsoltis pushed a commit that referenced this pull request Dec 18, 2017
* Add nullability check for completion handler

* Addresses comments

* added line break
minafarid pushed a commit to minafarid/firebase-ios-sdk that referenced this pull request Jun 6, 2018
* Add nullability check for completion handler

* Addresses comments

* added line break
@firebase firebase locked and limited conversation to collaborators Nov 10, 2019
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.

5 participants