Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsNPE during schema validation
https://www.eclipse.org/forums/index.php/mv/msg/185141/587487/#msg_587487
on when I hit a NullPointerException validating a somewhat contrived
schema. I'm not even certain that the schema is valid, but if it isn't I
would have thought that there would be a more meaningful diagnostic than
an NPE so I figured I'd raise it with you guys to see what you think.
The problem seems to be related to element CA which has a
substitutionGroup of CA2 which in turn references CA3. This may be an
illegal scenario for all I know.
Here is the exception stack trace:
java.lang.NullPointerException
at
org.eclipse.xsd.impl.XSDElementDeclarationImpl.validate(XSDE lementDeclarationImpl.java:1016)
at
org.eclipse.xsd.impl.XSDConcreteComponentImpl.validate(XSDCo ncreteComponentImpl.java:541)
at org.eclipse.xsd.impl.XSDSchemaImpl.validate(XSDSchemaImpl.ja va:1493)
at ...