diff --git a/CHANGELOG.md b/CHANGELOG.md index 482cd20..0f8c98b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ Proteus Changelog. ## Unreleased ### No issue +**Improve default JsonView handling.** + + +[f341af566518055](https://github.com/noboomu/proteus/commit/f341af566518055) joshua bauer *2020-12-30 05:48:32* + **Restructure pom files.** diff --git a/proteus-core/src/main/java/io/sinistral/proteus/wrappers/JsonViewWrapper.java b/proteus-core/src/main/java/io/sinistral/proteus/wrappers/JsonViewWrapper.java index 2998196..00d76d4 100644 --- a/proteus-core/src/main/java/io/sinistral/proteus/wrappers/JsonViewWrapper.java +++ b/proteus-core/src/main/java/io/sinistral/proteus/wrappers/JsonViewWrapper.java @@ -51,6 +51,8 @@ public JsonViewWrapper() CLASS_MAP.put(c.getSimpleName().toLowerCase(), c); } + + } catch (Exception e) { logger.error("Error processing JsonView", e); } @@ -60,6 +62,7 @@ public JsonViewWrapper() @Override public HttpHandler wrap(HttpHandler handler) { + return exchange -> { if (CLASS_MAP != null) {