Skip to content

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 artemcm and beccadax 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