xmlet / XsdParser

A Parser that parses a XSD file into a Java Structure.
MIT License
80 stars 34 forks source link

Null Pointer Exception Parsing OCX Schema #50

Closed skfcz closed 8 months ago

skfcz commented 9 months ago

Describe the bug When parsing the OCX Schema, one gets a null pointer exception.

Expected behavior No Null Pointer Exception

Library Version 3f5edef

Additional context

On https://github.com/skfcz/XsdParser you find

and additional code to access the XsdAttributes default value

lcduarte commented 8 months ago

Hello,

Thanks for using the library, I've been a little busy.

I've released a new version, 1.2.5, with a fallback that uses your approach when the Schema is null, because in some cases what you've written is not necessarily true, but your suggestion works in more cases that it did previously so it's always an improvement.

Thanks for your input :)