Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit ec73d20

Browse files
committed
Fix comparison for UUID upgrade regression
1 parent daa90d5 commit ec73d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/brapi/test/BrAPITestServer/service/pheno/ObservationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ private List<List<String>> buildDataMatrix(Page<ObservationEntity> observations,
468468
row.add(printIfNotNull(obs.getObservationTimeStamp())); // OBSERVATIONTIMESTAMP
469469

470470
for (ObservationVariableEntity var : variables) {
471-
if (obs.getObservationVariable() != null && obs.getObservationVariable().getId().toString() == var.getId().toString()) {
471+
if (obs.getObservationVariable() != null && obs.getObservationVariable().getId().equals(var.getId())) {
472472
row.add(obs.getValue());
473473
} else {
474474
row.add("");

0 commit comments

Comments
 (0)