summaryrefslogtreecommitdiff
path: root/xml/xml.go
diff options
context:
space:
mode:
Diffstat (limited to 'xml/xml.go')
-rw-r--r--xml/xml.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/xml/xml.go b/xml/xml.go
index 8c0c07282..20a26f562 100644
--- a/xml/xml.go
+++ b/xml/xml.go
@@ -146,7 +146,11 @@ type bazelPrebuiltEtcXmlAttributes struct {
}
func (p *prebuiltEtcXml) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
- baseAttrs := p.PrebuiltEtc.Bp2buildHelper(ctx)
+ baseAttrs, convertible := p.PrebuiltEtc.Bp2buildHelper(ctx)
+
+ if !convertible {
+ return
+ }
var schema *string
if p.properties.Schema != nil {