Change if transaction id is null generate id
[aai/aai-common.git] / 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];