Skip to content

Commit

Permalink
Avoiding calling SetMetaData with nil.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 684356895
Change-Id: Ic64071c053a4fa120f4297447b0318ce1d31b8a0
  • Loading branch information
A Googler authored and copybara-github committed Oct 10, 2024
1 parent d9a5300 commit b975477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/ak/liteparse/values_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func minResChildParse(ctx context.Context, xe resxml.XMLEvent, t res.Type, child
}
if fqn.Type == res.Styleable {
md, ok := parseStyleableChildren(ctx, childC, resC, errC)
if !ok {
if !ok || md == nil {
return false
}
if err := fqn.SetMetaData(md); err != nil {
Expand Down

0 comments on commit b975477

Please sign in to comment.