bcgov / ols-router

BC Advanced Route Planner
https://bcgov.github.io/ols-router/
Apache License 2.0
23 stars 11 forks source link

Fixes for handling data dates in error output #367

Closed cmhodgson closed 1 year ago

cmhodgson commented 1 year ago

We did some more testing on the new router code and found that the new data dates were not being handled correctly in some exceptional cases, such as when no route is found, causing a null pointer exception to be thrown. These changes require the dates to be present for all responses, and also simply output "null" in the case that the dates are null rather than throwing an exception. This is also handy in the case were the data was processed with the old routableBC maker code and don't have the new-format date values in them.