Grails error handler always receives null pointer
问题 We have a custom error controller that gets called after all of our errors. However, most of our errors that get thrown end up coming into the controller as null pointers, even though the original error was not a null pointer. Any ideas? Code below. Bootstrap and UrlMappings available if needed. Thanks Error Handler method def HandleErrors = { def exception = request.exception.cause.class if (exception) { Exception ex = request.exception //This exception is always a NPE ... Block of code