Commit 4c4e013c authored by Dave Syer's avatar Dave Syer Committed by Phillip Webb

Avoid NPE in error controller

parent 3fc8752a
......@@ -84,7 +84,7 @@ public class BasicErrorController implements ErrorController {
}
map.put("status", status);
if (error != null) {
while (error instanceof ServletException) {
while (error instanceof ServletException && error.getCause() != null) {
error = ((ServletException) error).getCause();
}
map.put("exception", error.getClass().getName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment