diff options
author | Sudarshan Kumar <sudars19@in.ibm.com> | 2019-07-02 17:05:56 +0530 |
---|---|---|
committer | Sudarshan Kumar <sudars19@in.ibm.com> | 2019-07-02 17:06:32 +0530 |
commit | ae6c01275cfa4e85045edb0473659789865479f3 (patch) | |
tree | 7969ed88e1caee9e2913c3a8ed3de68b89eef1e8 | |
parent | a98c404db84664f834f85e78f731e59d3930ede4 (diff) |
Sonar Bug Fix- for EntityEventPolicy.java
Sonar Bug Fix- Null Check for EntityEventPolicy.java
Issue-ID: AAI-2505
Change-Id: I33c51f1ed02e1daf63a7593c882f4719b3b86881
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
-rw-r--r-- | src/main/java/org/onap/aai/datarouter/policy/EntityEventPolicy.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/onap/aai/datarouter/policy/EntityEventPolicy.java b/src/main/java/org/onap/aai/datarouter/policy/EntityEventPolicy.java index 152baf3..ec76c95 100644 --- a/src/main/java/org/onap/aai/datarouter/policy/EntityEventPolicy.java +++ b/src/main/java/org/onap/aai/datarouter/policy/EntityEventPolicy.java @@ -4,6 +4,7 @@ * ================================================================================ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. * Copyright © 2017-2018 Amdocs + * Modifications Copyright (C) 2019 IBM * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -410,7 +411,8 @@ public class EntityEventPolicy implements Processor { JSONObject entityJsonObject = getUebEntity(uebPayload); - JsonNode entityJsonNode = convertToJsonNode(entityJsonObject.toString()); + JsonNode entityJsonNode = + convertToJsonNode(entityJsonObject !=null ? entityJsonObject.toString() : ""); String parentEntityType = entityType; |