soa-model icon indicating copy to clipboard operation
soa-model copied to clipboard

NPE in ComplexContentDiffGenerator

Open ff-wl opened this issue 4 years ago • 1 comments

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

ff-wl avatar Apr 27 '22 08:04 ff-wl

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

rrayst avatar Apr 27 '22 09:04 rrayst