diff --git a/pace-packaging/src/main/java/edu/colorado/cires/pace/packaging/PassivePackerFactory.java b/pace-packaging/src/main/java/edu/colorado/cires/pace/packaging/PassivePackerFactory.java index d9e59008..759cb203 100644 --- a/pace-packaging/src/main/java/edu/colorado/cires/pace/packaging/PassivePackerFactory.java +++ b/pace-packaging/src/main/java/edu/colorado/cires/pace/packaging/PassivePackerFactory.java @@ -545,6 +545,15 @@ private String getStringSensorType(Sensor sensor) { } private PassivePackerQualityDetails getQualityDetails(DataQuality dataQuality) throws NotFoundException, DatastoreException { + String analyst = dataQuality.getQualityAnalyst(); + if (analyst == null || analyst.isEmpty()) { + return PassivePackerQualityDetails.builder() + .description(dataQuality.getQualityAssessmentDescription()) + .method(dataQuality.getQualityAnalysisMethod()) + .objectives(dataQuality.getQualityAnalysisObjectives()) + .qualityDetails(getQualityEntries(dataQuality.getQualityEntries())) + .build(); + } Person person = personRepository.getByUniqueField(dataQuality.getQualityAnalyst()); return PassivePackerQualityDetails.builder() .analyst(dataQuality.getQualityAnalyst())