Skip to content

Commit

Permalink
ALS-6330: Fix issue merging variant metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Jun 17, 2024
1 parent ce17d75 commit b1d6559
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,11 @@ public static void merge(VariantMetadataIndex variantMetadataIndex1, VariantMeta
mergedFbbis.put(key, fbbis1.get(key));
});
fbbis2.keys().forEach(key -> {
if (!mergedFbbis.keys().contains(key)) {
ConcurrentHashMap<String, String[]> metadataMap = mergedFbbis.get(key);
if (metadataMap == null) {
mergedFbbis.put(key, fbbis2.get(key));
} else {
metadataMap.putAll(fbbis2.get(key));
}
});
mergedFbbis.complete();
Expand Down

0 comments on commit b1d6559

Please sign in to comment.