Skip to content

Commit

Permalink
AUS-4228 Prevent CSW merge creating empty coords
Browse files Browse the repository at this point in the history
  • Loading branch information
vjf committed Aug 13, 2024
1 parent b6a15a7 commit 52f3686
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,11 @@ private void mergeRecords(CSWServiceItem cswService, CSWRecord destination, CSWR
}
}
}
CSWGeographicElement geoElemArr[] = new CSWGeographicElement[geoElemSet.size()];
geoElemSet.toArray(geoElemArr);
destination.setCSWGeographicElements(geoElemArr);
if (geoElemSet.size() > 0) {
CSWGeographicElement geoElemArr[] = new CSWGeographicElement[geoElemSet.size()];
geoElemSet.toArray(geoElemArr);
destination.setCSWGeographicElements(geoElemArr);
}

// Merge constraints, accessConstraints and useLimitConstraints (no dupes)
Set<String> constraintSet = new HashSet<>();
Expand Down

0 comments on commit 52f3686

Please sign in to comment.