We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b8ad8f + cf75e02 commit 0ef5dbcCopy full SHA for 0ef5dbc
src/main/java/com/networknt/aws/lambda/handler/middleware/sanitizer/SanitizerMiddleware.java
@@ -69,7 +69,7 @@ public Status execute(LightLambdaExchange exchange) {
69
70
if (CONFIG.isBodyEnabled() && ("POST".equalsIgnoreCase(method) || "PUT".equalsIgnoreCase(method) || "PATCH".equalsIgnoreCase(method))) {
71
String body = exchange.getRequest().getBody();
72
- if (!body.isEmpty()) {
+ if (body != null && !body.isEmpty()) {
73
body = body.trim();
74
if (body.startsWith("{")) {
75
Map<String, Object> bodyMap = JsonMapper.string2Map(body);
0 commit comments