In org.geotools.xml.handlers.ComplexElementHandler is code like this:
Which will set
in some cases.
The class org.geotools.xml.gml.GMLComplexTypes.MultiPointType
has a method
Which will always result in an ArrayIndexOutOfBoundsException in this case (Because the array is emtpy and has no [0] element).
Some Implementations of Type like org.geotools.xml.gml.GMLComplexTypes.PointMemberType in this class have a check for this:
If the ArrayIndexOutOfBoundsException occurs the follwing catch will happen in FeatureReaderItertator:
and parsing of the features will end abruptly (and silently!).
Example GML: