diff options
author | James Forsyth <jf2512@att.com> | 2019-08-15 13:45:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-08-15 13:45:48 +0000 |
commit | 3215b48384eed4308da6ba49b2a52551f5b1427b (patch) | |
tree | 1c5e24d4ade55a84809c5e52ee6155341a527435 | |
parent | 66fdb2bc8572c941851001c604ee8b967f2db92b (diff) | |
parent | ae6c01275cfa4e85045edb0473659789865479f3 (diff) |
Merge "Sonar Bug Fix- for EntityEventPolicy.java"
-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; |