From be1edcb6830745015f5de72e820f40f36dd571ad Mon Sep 17 00:00:00 2001 From: Instrumental Date: Fri, 24 Jan 2020 14:47:48 -0600 Subject: Fix Agent and CM Issues Issue-ID: AAF-1067 Signed-off-by: Instrumental Change-Id: I5508edec3d63b4831d0caddd8303126956bd05a0 --- .../src/main/java/org/onap/aaf/org/DefaultOrgIdentity.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'auth/auth-deforg/src/main/java/org/onap') diff --git a/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrgIdentity.java b/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrgIdentity.java index f1576c4f..eaa44830 100644 --- a/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrgIdentity.java +++ b/auth/auth-deforg/src/main/java/org/onap/aaf/org/DefaultOrgIdentity.java @@ -120,10 +120,14 @@ public class DefaultOrgIdentity implements Identity { @Override public Identity responsibleTo() throws OrganizationException { - if ("".equals(identity.responsibleTo) && isFound()) { // cover the situation of Top Dog... reports to no-one. - return this; + if(isFound()) { + if ("".equals(identity.responsibleTo)) { // cover the situation of Top Dog... reports to no-one. + return this; + } else { + return org.getIdentity(trans, identity.responsibleTo); + } } else { - return org.getIdentity(trans, identity.responsibleTo); + throw new OrganizationException("Identity doesn't exist"); } } -- cgit 1.2.3-korg