NPE when converting ClinVar XSD file
Opened this issue · 0 comments
holtgrewe commented
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)