Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid W. Miller2016-09-15 15:20:05 -0400
committerdonald.g.dunne2016-09-16 14:38:21 -0400
commit944fd6fc4b956e8c68cffb07534df7e1f9c00892 (patch)
tree05a7fcd09a4c027d91acb26968ea223cea2b70f7
parent8ecedbd427179236f8a525147cd6dcb5c0fb006f (diff)
downloadorg.eclipse.osee-944fd6fc4b956e8c68cffb07534df7e1f9c00892.tar.gz
org.eclipse.osee-944fd6fc4b956e8c68cffb07534df7e1f9c00892.tar.xz
org.eclipse.osee-944fd6fc4b956e8c68cffb07534df7e1f9c00892.zip
bug[ats_ATS315061]: Handle attribute unspecified during safety report level check
-rw-r--r--plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/SafetyInformationAccumulator.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/SafetyInformationAccumulator.java b/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/SafetyInformationAccumulator.java
index 114ab15fe3..f07182ee42 100644
--- a/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/SafetyInformationAccumulator.java
+++ b/plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/SafetyInformationAccumulator.java
@@ -229,7 +229,11 @@ public final class SafetyInformationAccumulator {
}
parentCritVal = SafetyCriticalityLookup.getSeverityLevel(intermediate);
} else if (otherType.equals(CoreAttributeTypes.ItemDAL)) {
- parentCritVal = SafetyCriticalityLookup.getDALLevel(parent.getSoleAttributeAsString(otherType, "E"));
+ String intermediate = parent.getSoleAttributeAsString(otherType, "E");
+ if (IAttribute.UNSPECIFIED.equals(intermediate)) {
+ intermediate = "E";
+ }
+ parentCritVal = SafetyCriticalityLookup.getDALLevel(intermediate);
} else {
throw new OseeArgumentException("Invalid attribute type: %s", otherType.toString());
}

Back to the top