diff options
author | David W. Miller | 2016-09-15 19:20:05 +0000 |
---|---|---|
committer | donald.g.dunne | 2016-09-16 18:38:21 +0000 |
commit | 944fd6fc4b956e8c68cffb07534df7e1f9c00892 (patch) | |
tree | 05a7fcd09a4c027d91acb26968ea223cea2b70f7 | |
parent | 8ecedbd427179236f8a525147cd6dcb5c0fb006f (diff) | |
download | org.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
Change-Id: Id9614230908c3b77bca4725b6999bf06a69d6014
-rw-r--r-- | plugins/org.eclipse.osee.define.report/src/org/eclipse/osee/define/report/internal/SafetyInformationAccumulator.java | 6 |
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 114ab15fe34..f07182ee428 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()); } |