Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null Pointer Exception Parsing OCX Schema #50

Closed
skfcz opened this issue Feb 3, 2024 · 1 comment
Closed

Null Pointer Exception Parsing OCX Schema #50

skfcz opened this issue Feb 3, 2024 · 1 comment

Comments

@skfcz
Copy link

skfcz commented Feb 3, 2024

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

  • one test case with data
  • a fix

and additional code to access the XsdAttributes default value

@lcduarte
Copy link
Member

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants