Skip to content

Commit

Permalink
Fixes #2703, NPE in exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jun 6, 2019
1 parent 5e6b4ac commit 942d2dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
String stack = "";
Object uuid = req.getAttribute(QuarkusExceptionHandler.ERROR_ID);
Throwable exception = (Throwable) req.getAttribute(RequestDispatcher.ERROR_EXCEPTION);
if (Boolean.parseBoolean(getInitParameter(SHOW_STACK))) {
if (Boolean.parseBoolean(getInitParameter(SHOW_STACK)) && exception != null) {
details = generateHeaderMessage(exception, uuid == null ? null : uuid.toString());
stack = generateStackTrace(exception);

Expand Down

0 comments on commit 942d2dd

Please sign in to comment.