From bbf4695035cb5f32364001c4b1de5e2f2bdefc79 Mon Sep 17 00:00:00 2001 From: "koo.taejin" Date: Tue, 9 Jun 2015 09:36:23 +0900 Subject: [PATCH] #535 Shows detail error message when web controller meets any exception. fix method with missing return statement. --- .../pinpoint/web/controller/ControllerExceptionHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java b/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java index 9222164c2d2c..f09a6528d6ee 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/controller/ControllerExceptionHandler.java @@ -107,7 +107,7 @@ private String getRequestUrl(HttpServletRequest request) { private Map> getRequestHeaders(HttpServletRequest request) { Enumeration keys = request.getHeaderNames(); if (keys == null) { - Collections.emptyMap(); + return Collections.emptyMap(); } Map> result = new HashMap>(); @@ -126,7 +126,7 @@ private Map> getRequestHeaders(HttpServletRequest request) private List getRequestHeaderValueList(HttpServletRequest request, String key) { Enumeration headerValues = request.getHeaders(key); if (headerValues == null) { - Collections.emptyList(); + return Collections.emptyList(); } List headerValueList = new ArrayList(); @@ -145,7 +145,7 @@ private List getRequestHeaderValueList(HttpServletRequest request, Strin private Map> getRequestParameters(HttpServletRequest request) { Enumeration keys = request.getParameterNames(); if (keys == null) { - Collections.emptyMap(); + return Collections.emptyMap(); } Map> result = new HashMap>();