Skip to content
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

target_dependency: Fix crash if target_proxy is nil. #915

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

byohay
Copy link
Contributor

@byohay byohay commented Jul 14, 2023

If target_proxy is nil, calling to_tree_hash on it will raise an
exception: undefined method `to_tree_hash' for nil:NilClass
(NoMethodError).

@dnkoutso
Copy link
Contributor

Can you provide more info about the failure case? Also what about a test?

@byohay byohay force-pushed the feature/fix-target-dependency-crash branch from 4bcdcb2 to 079bd2f Compare July 16, 2023 19:09
If `target_proxy` is `nil`, calling `to_tree_hash` on it will raise an
exception: undefined method `to_tree_hash' for nil:NilClass
(NoMethodError).
@byohay byohay force-pushed the feature/fix-target-dependency-crash branch from 079bd2f to 0303c0b Compare July 16, 2023 19:14
@byohay
Copy link
Contributor Author

byohay commented Jul 16, 2023

@dnkoutso sorry, added a test and explanation.

@amorde amorde merged commit f59847b into CocoaPods:master Jan 28, 2024
8 checks passed
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.

None yet

3 participants