-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle selects with None values for label-valued attrs in na…
…tive.existing_rule and native.existing_rules Label-valued attributes have a default value of null in Java. The BuildType.Selector constructor casts None values of select branches to that default - i.e. to null; but we must transform that null back to None when reconstructing a SelectorValue in native.existing_rule/s for use in Starlark - or we would miss a branch. And take the opportunity to ensure we never attempt to construct an empty SelectorValue or SelectorList - which is a fatal error. PiperOrigin-RevId: 656122706 Change-Id: Id236af711ba7f7c515a1b238e4be9d7d63574173
- Loading branch information
1 parent
d88433d
commit 38ade70
Showing
2 changed files
with
60 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters