Skip to content

Commit

Permalink
target_dependency: Fix crash if target_proxy is nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
byohay committed Jul 14, 2023
1 parent 2ce68b6 commit 4bcdcb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xcodeproj/project/object/target_dependency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def to_tree_hash
hash = {}
hash['displayName'] = display_name
hash['isa'] = isa
hash['targetProxy'] = target_proxy.to_tree_hash
hash['targetProxy'] = target_proxy.to_tree_hash if target_proxy
hash
end

Expand Down

0 comments on commit 4bcdcb2

Please sign in to comment.