diff --git a/projectmanagement/src/main/java/life/qbic/projectmanagement/domain/project/sample/SampleRegistrationRequest.java b/projectmanagement/src/main/java/life/qbic/projectmanagement/domain/project/sample/SampleRegistrationRequest.java index 2492be81f..8a649ab9c 100644 --- a/projectmanagement/src/main/java/life/qbic/projectmanagement/domain/project/sample/SampleRegistrationRequest.java +++ b/projectmanagement/src/main/java/life/qbic/projectmanagement/domain/project/sample/SampleRegistrationRequest.java @@ -33,7 +33,7 @@ public SampleRegistrationRequest(String label, BatchId assignedBatch, Experiment this.experimentalGroupId = Objects.requireNonNull(experimentalGroupId); this.replicateReference = Objects.requireNonNull(replicateReference); this.sampleOrigin = Objects.requireNonNull(sampleOrigin); - this.comment = comment == null ? "" : comment; - this.analysisType = analysisType == null ? "" : analysisType; + this.comment = comment; + this.analysisType = analysisType; } }