diff options
author | James Wu | 2017-07-17 23:11:55 +0000 |
---|---|---|
committer | Ryan Brooks | 2017-07-21 03:43:48 +0000 |
commit | 16050dc3323cfcaa6f2013ca8deb882e444d019b (patch) | |
tree | 7be3f92faa3fcfc08fcc89de6db93b86c29b4616 | |
parent | 2ed33d3eea5b98068467626df2313f460f154579 (diff) | |
download | org.eclipse.osee-16050dc3323cfcaa6f2013ca8deb882e444d019b.tar.gz org.eclipse.osee-16050dc3323cfcaa6f2013ca8deb882e444d019b.tar.xz org.eclipse.osee-16050dc3323cfcaa6f2013ca8deb882e444d019b.zip |
bug[ats_ATS422101]: Exception obtaining Branch Access Context Id
Signed-off-by: James Wu <james.j.wu@boeing.com>
-rw-r--r-- | plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/access/AtsBranchAccessManager.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/access/AtsBranchAccessManager.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/access/AtsBranchAccessManager.java index 2b8742382ad..e7dd0f84089 100644 --- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/access/AtsBranchAccessManager.java +++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/access/AtsBranchAccessManager.java @@ -102,11 +102,19 @@ public class AtsBranchAccessManager implements IArtifactEventListener, EventHand } public Collection<IAccessContextId> getContextId(BranchId branch) { + + Collection<IAccessContextId> contextIds = new ArrayList<>(); + + if (branch.isInvalid()) { + contextIds.add(AtsBranchAccessContextId.DENY_CONTEXT); + + return contextIds; + } + if (branchUuidToContextIdCache.containsKey(branch.getUuid())) { return branchUuidToContextIdCache.get(branch.getUuid()); } - Collection<IAccessContextId> contextIds = new ArrayList<>(); branchUuidToContextIdCache.put(branch.getUuid(), contextIds); try { // don't access control common branch artifacts...yet |