From 6ff7ff1a06316c81162778bced51df67c8f8ee78 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Wed, 27 Dec 2023 14:14:59 +0900 Subject: [PATCH] =?UTF-8?q?toErrorPage=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/foundation/web/ExceptionController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/foundation/web/ExceptionController.java b/src/main/java/cokr/xit/foundation/web/ExceptionController.java index 1d6a20c..d848c0c 100644 --- a/src/main/java/cokr/xit/foundation/web/ExceptionController.java +++ b/src/main/java/cokr/xit/foundation/web/ExceptionController.java @@ -29,7 +29,7 @@ public class ExceptionController extends AbstractController { } protected ModelAndView toErrorPage(HttpServletRequest hreq, Object status, String msgKey) { - Object disp = hreq.getRequestDispatcher("error/errorPage"); + Object disp = hreq != null ? hreq.getRequestDispatcher("error/errorPage") : null; String viewName = disp != null ? "error/errorPage" : "jsonView" ; return new ModelAndView(viewName) .addObject("json", "jsonView".equals(viewName) || ajaxRequest() || jsonResponse())