Closed byamba-tumurkhuu closed 6 years ago
@fehguy @rayyildiz
This isn't a viable solution. You are just ignoring all this routes.
They're ignored because they can't be loaded. It's better to log if there is any problem during the loading, rather than killing the app with exception.
Yes that's true. I was hoping to find a better solution but it is impossible
Unfortunately I'm not getting any reviews.
I have a router that extends
SimpleRouter
:And my routes file:
However when SwaggerPlugin loads the routes during the app initialization, it tries to load
ApiRouter
as a file thus throwing NullPointerException at the following code:This PR ignores any exceptions when loading routes and logs in debug level.