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

NPE happened when parse webdav.xsd #17

Open
synix opened this issue Mar 16, 2017 · 1 comment
Open

NPE happened when parse webdav.xsd #17

synix opened this issue Mar 16, 2017 · 1 comment

Comments

@synix
Copy link

synix commented Mar 16, 2017

When parse webdav.xsd NPE happened:

⇒ java -jar ./android-jaxb-1.0.1.jar webdav.xsd -d src/main/java -p com.github.sardine.model
Code Generator Initialized. Destination Directory: src/main/java
[Element /activelock Min Occurs: null, Max Occurs: null ] of type [null][Start of sequence Min Occurs: 1, Max Occurs: 1 ]
[Element /activelock/lockscope Min Occurs: 1, Max Occurs: 1 ] of type [null]Exception in thread "main" java.lang.NullPointerException
at com.mickoo.xml.xsd2simplexml.NameUtil.toWordList(NameUtil.java:208)
at com.mickoo.xml.xsd2simplexml.NameConverter$Standard.toWordList(NameConverter.java:106)
at com.mickoo.xml.xsd2simplexml.NameConverter$Standard.toClassName(NameConverter.java:108)
at com.mickoo.xml.xsd2simplexml.CodeGenerator.createElement(CodeGenerator.java:43)
at com.mickoo.xml.xsd2simplexml.SchemaParser.processElement(SchemaParser.java:347)
at com.mickoo.xml.xsd2simplexml.SchemaParser.processParticle(SchemaParser.java:208)
at com.mickoo.xml.xsd2simplexml.SchemaParser.processGroup(SchemaParser.java:219)
at com.mickoo.xml.xsd2simplexml.SchemaParser.processParticle(SchemaParser.java:204)
at com.mickoo.xml.xsd2simplexml.SchemaParser.processComplexType(SchemaParser.java:232)
at com.mickoo.xml.xsd2simplexml.SchemaParser.processElement(SchemaParser.java:368)
at com.mickoo.xml.xsd2simplexml.SchemaParser.parse(SchemaParser.java:67)
at com.mickoo.xml.xsd2simplexml.Main.main(Main.java:80)

@milkovn
Copy link

milkovn commented Jul 20, 2017

I have a similar issue. Did you manage to solve it?

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