Change if transaction id is null generate id 69/22569/1
authorVenkata Harish K Kajur <vk250x@att.com>
Tue, 7 Nov 2017 17:42:16 +0000 (12:42 -0500)
committerVenkata Harish K Kajur <vk250x@att.com>
Tue, 7 Nov 2017 17:42:21 +0000 (12:42 -0500)
Issue-ID: AAI-454
Change-Id: If3cbb5ca2bb07426c4fe5643bac742e739ec0da8
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
aai-core/src/main/java/org/onap/aai/logging/LoggingContext.java

index 627a2f8..1e61c65 100644 (file)
@@ -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];