From: Venkata Harish K Kajur Date: Tue, 7 Nov 2017 17:42:16 +0000 (-0500) Subject: Change if transaction id is null generate id X-Git-Tag: v1.1.0~8 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F22569%2F1;p=aai%2Faai-common.git Change if transaction id is null generate id Issue-ID: AAI-454 Change-Id: If3cbb5ca2bb07426c4fe5643bac742e739ec0da8 Signed-off-by: Venkata Harish K Kajur --- 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];