OxalisCommunity / vefa-peppol

Peppol and Oxalis supporting library
Other
13 stars 17 forks source link

Null pointer exception in an edge case where the SMP returns 404 but with an empty xml response body #47

Open orco opened 1 year ago

orco commented 1 year ago

We recently run into an issue where we do a lookup but the SMP(in this case smp.difi.no) returns an xml header with a commented out body together with HTTP status 404. Curl output follows below. In network.oxalis.vefa.peppol.lookup.reader.MultiReader.parseServiceGroup it results in an NPE with the message:

Cannot invoke "network.oxalis.vefa.peppol.lookup.api.FetcherResponse.getNamespace()" because "response" is null

Not sure if this should be handled by vefa-peppol or in the code that uses vefa-peppol?

`curl -v B-8c30ca3b541456dde1172d2f56b737d3.iso6523-actorid-upis.edelivery.tech.ec.europa.eu/iso6523-actorid-upis::0192:981299108