nhsconnect / gpconnect-demonstrator

GP Connect demonstrator is a reference implementation of a GP Connect providing system and a consumer system demonstration
https://orange.testlab.nhs.uk/
Apache License 2.0
17 stars 10 forks source link

Read non existent appointment returns 500 #381

Closed SimonFarrowNHS closed 1 year ago

SimonFarrowNHS commented 1 year ago

After migration to Springboot 2 it appears that there is a new exception is thrown NoSuchElementException that was not the case for Springboot 1. The fix is to catch said exception and return null as per status quo ante.