summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-09-19 15:11:39 +0530
committerrama-huawei <rama.subba.reddy.s@huawei.com>2017-09-19 15:14:31 +0530
commit5c83a4a1600b42275c0cafb33669ccac7d74014d (patch)
tree1136907c96499eca0adbb9ae6a260fa719715f8b /src/main
parent44defc047b874e0bf88407f3999c12f65478fd3d (diff)
Fix for Sonar blocker issues
NullPointerException might be thrown as 'jsonObj' is null DCAEGEN2-114 Change-Id: I1b1a9b4c6e30a7bfe5a42ed47f0bf3e7134d4e03 Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/att/nsa/dmaap/util/ContentLengthInterceptor.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/att/nsa/dmaap/util/ContentLengthInterceptor.java b/src/main/java/com/att/nsa/dmaap/util/ContentLengthInterceptor.java
index fe1c768..7b0dda1 100644
--- a/src/main/java/com/att/nsa/dmaap/util/ContentLengthInterceptor.java
+++ b/src/main/java/com/att/nsa/dmaap/util/ContentLengthInterceptor.java
@@ -43,7 +43,6 @@ public class ContentLengthInterceptor implements AjscInterceptor{
private String defLength;
- //private Logger log = Logger.getLogger(ContentLengthInterceptor.class.toString());
private static final EELFLogger log = EELFManager.getInstance().getLogger(ContentLengthInterceptor.class);
@@ -97,7 +96,7 @@ public class ContentLengthInterceptor implements AjscInterceptor{
log.error("message size is greater then default"+e.getMessage());
ErrorResponse errRes = new ErrorResponse(HttpStatus.SC_REQUEST_TOO_LONG,
DMaaPResponseCode.MSG_SIZE_EXCEEDS_MSG_LIMIT.getResponseCode(), System.getProperty("msg_size_exceeds")
- + jsonObj.toString());
+ + e.toString());
log.info(errRes.toString());