opengeospatial / ets-ogcapi-edr10

Other
2 stars 5 forks source link

Possible NPE for validateNoQueryParameters and validateCoordsQueryParameters tests #121

Closed bpross-52n closed 6 months ago

bpross-52n commented 9 months ago

Describe the bug If the data_queries element of an collection response is not specified, the validateNoQueryParameters and validateCoordsQueryParameters tests can run into a NullPointerException, see here: https://github.com/opengeospatial/ets-ogcapi-edr10/blob/7325036d19596fdfcf16bf4948519ba19cae39bb/src/main/java/org/opengis/cite/ogcapiedr10/queries/QueryCollections.java#L145

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior NPE should be cought.

The EDR specification should be checked, whether the data_queries element is mandatory.