We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a6f152 commit b392776Copy full SHA for b392776
pkg/lifecycle/lifecycle.go
@@ -267,6 +267,10 @@ func (f Filter) MarshalJSON() ([]byte, error) {
267
// MarshalXML - produces the xml representation of the Filter struct
268
// only one of Prefix, And and Tag should be present in the output.
269
func (f Filter) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
270
+ if f.IsNull() {
271
+ return nil
272
+ }
273
+
274
if err := e.EncodeToken(start); err != nil {
275
return err
276
}
0 commit comments