membrane / soa-model

Toolkit and Java API for WSDL, WADL and XML Schema.
http://www.membrane-soa.org/soa-model/
Apache License 2.0
94 stars 73 forks source link

NPE in ComplexContentDiffGenerator #285

Open ff-wl opened 2 years ago

ff-wl commented 2 years ago

I've encountered a NullPointerException in ComplexContentDiffGenerator: https://github.com/membrane/soa-model/blob/9e7acdfb205fddc60bdd44fcfc4940f4f386ca7d/core/src/main/groovy/com/predic8/schema/diff/ComplexContentDiffGenerator.groovy#L61

a.derivation was null.

derivation is not mandatory in ComplexContent, if this branch is taken while creating: https://github.com/membrane/soa-model/blob/9e7acdfb205fddc60bdd44fcfc4940f4f386ca7d/core/src/main/groovy/com/predic8/schema/ComplexContent.groovy#L58-L63

rrayst commented 2 years ago

Thanks for reporting the issue! We happily accept pull requests. :)