diff --git a/app/models/odc/SoftwareVulnerability.scala b/app/models/odc/SoftwareVulnerability.scala index 9c0aefc..94cb14b 100644 --- a/app/models/odc/SoftwareVulnerability.scala +++ b/app/models/odc/SoftwareVulnerability.scala @@ -13,6 +13,7 @@ final case class SoftwareVulnerability (vulnerabilityId: Int, cpeEntryId: Int, i def includesAllPreviousVersions: Boolean = includesAllPreviousVersionsRaw match { case Some("1") => true case None => false + case _ => sys.error("Unexpected value from ODC database") } }