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 when converting ClinVar XSD file #570

Open
holtgrewe opened this issue May 13, 2024 · 0 comments
Open

NPE when converting ClinVar XSD file #570

holtgrewe opened this issue May 13, 2024 · 0 comments

Comments

@holtgrewe
Copy link

Using this XSD file

I get the following error with v1.92

> java -jar schema2proto-lib-1.92.jar ClinVar_VCV_weekly.xsd --outputDirectory xs
[main] INFO no.entur.schema2proto.generateproto.Schema2Proto - Starting to parse ClinVar_VCV_weekly.xsd
[main] INFO no.entur.schema2proto.generateproto.ProtoSerializer - Writing proto files to /home/holtgrem_c/Downloads/xs
[main] ERROR no.entur.schema2proto.generateproto.Schema2Proto - Error processing proto files: null
java.lang.NullPointerException
        at no.entur.schema2proto.generateproto.ProtoSerializer.lambda$moveReusedLocalTypesToGlobal$28(ProtoSerializer.java:1246)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
        at no.entur.schema2proto.generateproto.ProtoSerializer.moveReusedLocalTypesToGlobal(ProtoSerializer.java:1246)
        at no.entur.schema2proto.generateproto.ProtoSerializer.serialize(ProtoSerializer.java:136)
        at no.entur.schema2proto.generateproto.Schema2Proto.parseAndSerialize(Schema2Proto.java:118)
        at no.entur.schema2proto.generateproto.Schema2Proto.<init>(Schema2Proto.java:98)
        at no.entur.schema2proto.generateproto.Schema2Proto.main(Schema2Proto.java:131)
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

1 participant