aboutsummaryrefslogtreecommitdiffstats
path: root/aai-core/src
diff options
context:
space:
mode:
authorVenkata Harish K Kajur <vk250x@att.com>2017-11-07 12:42:16 -0500
committerVenkata Harish K Kajur <vk250x@att.com>2017-11-07 12:42:21 -0500
commit8e9fcb43a1b9c16be822b5528ba72dccd855e178 (patch)
tree86fff0920719549d771e33d1a0d6c4e5ce2be491 /aai-core/src
parent54837e986ebcbaa7be4a1c7e8817d73cac5fe519 (diff)
Change if transaction id is null generate id
Issue-ID: AAI-454 Change-Id: If3cbb5ca2bb07426c4fe5643bac742e739ec0da8 Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'aai-core/src')
-rw-r--r--aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java b/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java
index 627a2f8c..1e61c659 100644
--- a/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java
+++ b/aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java
@@ -117,11 +117,10 @@ public class LoggingContext {
public static void requestId(String requestId) throws AAIException {
- if(requestId == null){
- throw new AAIException("AAI_4010");
- }
-
try {
+ if(requestId == null){
+ throw new IllegalArgumentException();
+ }
if (requestId.contains(":")) {
String[] uuidParts = requestId.split(":");
requestId = uuidParts[0];