forked from loafle/openapi-generator-original
Additional null check before doing SequenceEqual check
This commit is contained in:
parent
942a0dafb6
commit
651ead1346
@ -193,6 +193,7 @@
|
||||
(
|
||||
this.{{name}} == input.{{name}} ||
|
||||
this.{{name}} != null &&
|
||||
input.{{name}} != null &&
|
||||
this.{{name}}.SequenceEqual(input.{{name}})
|
||||
){{#hasMore}} && {{/hasMore}}{{/isContainer}}{{/vars}}{{^vars}}{{#parent}}base.Equals(input){{/parent}}{{^parent}}false{{/parent}}{{/vars}};
|
||||
{{/useCompareNetObjects}}
|
||||
|
@ -171,6 +171,7 @@ this.{{name}} = {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}};
|
||||
(
|
||||
this.{{name}} == input.{{name}} ||
|
||||
this.{{name}} != null &&
|
||||
input.{{name}} != null &&
|
||||
this.{{name}}.SequenceEqual(input.{{name}})
|
||||
){{#hasMore}} && {{/hasMore}}{{/isContainer}}{{/vars}}{{^vars}}{{#parent}}base.Equals(input){{/parent}}{{^parent}}false{{/parent}}{{/vars}};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user