Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2017-08-31 20:40:28 -0400
committerDonald Dunne2017-09-01 12:36:29 -0400
commite7e53a9fa713c6935595b3bdf0e038f6a87190f4 (patch)
treed16f3f71dd9821da72d796ccbb77b45fddcd85bc
parent33459bad25f1b8ff5f8f8b053411901a8a0f7111 (diff)
downloadorg.eclipse.osee-e7e53a9fa713c6935595b3bdf0e038f6a87190f4.tar.gz
org.eclipse.osee-e7e53a9fa713c6935595b3bdf0e038f6a87190f4.tar.xz
org.eclipse.osee-e7e53a9fa713c6935595b3bdf0e038f6a87190f4.zip
bug: Guard against ITeamWorkflowProvider exceptions0.25.0.v201709011652-NRB
-rw-r--r--plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/workflow/AtsWorkItemServiceImpl.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/workflow/AtsWorkItemServiceImpl.java b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/workflow/AtsWorkItemServiceImpl.java
index 8bfb2a9a66..7855349eab 100644
--- a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/workflow/AtsWorkItemServiceImpl.java
+++ b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/workflow/AtsWorkItemServiceImpl.java
@@ -157,11 +157,15 @@ public class AtsWorkItemServiceImpl implements IAtsWorkItemService {
public String getCombinedPcrId(IAtsWorkItem workItem) throws OseeCoreException {
String id = "";
for (ITeamWorkflowProvider provider : TeamWorkflowProviders.getTeamWorkflowProviders()) {
- if (provider.isResponsibleFor(workItem)) {
- String computedPcrId = provider.getComputedPcrId(workItem);
- if (Strings.isValid(computedPcrId)) {
- id = computedPcrId;
+ try {
+ if (provider.isResponsibleFor(workItem)) {
+ String computedPcrId = provider.getComputedPcrId(workItem);
+ if (Strings.isValid(computedPcrId)) {
+ id = computedPcrId;
+ }
}
+ } catch (Exception ex) {
+ services.getLogger().error(ex, "Error with provider %s", provider.toString());
}
}
if (Strings.isInValid(id)) {

Back to the top