Skip to content

[5.9🍒] account for errors importing ObjC method as async prop #65979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

kavon
Copy link
Member

@kavon kavon commented May 17, 2023

• Description: Avoid crashing if the method import failed; as the bodyParams will be null in such a case.
• Risk: Very Low. Only adds a defensive check and removes an unused variable.
• Original PR: #65937
• Reviewed By: pending
• Testing: done manually
• Resolves: rdar://109377788

forgot to check for errors when importing an
ObjC method as an async computed property.

rdar://109377788
(cherry picked from commit f3c4996)
@kavon kavon requested a review from a team as a code owner May 17, 2023 18:39
@kavon
Copy link
Member Author

kavon commented May 17, 2023

@swift-ci please test

@kavon
Copy link
Member Author

kavon commented May 17, 2023

@swift-ci build toolchain

@kavon kavon requested review from beccadax and artemcm May 19, 2023 21:28
Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

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

This seems like a sound minimal fix. 👍🏼

@kavon kavon merged commit 49b7e0d into swiftlang:release/5.9 May 20, 2023
@kavon kavon deleted the 5.9-defensive-objc-async-property-import branch May 22, 2023 17:20
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.

3 participants