Skip to content

Commit

Permalink
Merge pull request #179 from nitin-ebi/contig-translation
Browse files Browse the repository at this point in the history
Filter out null assembly code
  • Loading branch information
nitin-ebi authored Sep 20, 2024
2 parents fe26df2 + 5f05d12 commit 721744f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class TaxonomyUtils {

public Optional<String> getAssemblyAccessionForAssemblyCode(String assemblyCode) {
return taxonomyRepository.getBrowsableSpecies().stream()
.filter(t -> t.getAssemblyCode().equals(assemblyCode))
.filter(t -> t != null && t.getAssemblyCode() != null && t.getAssemblyCode().equals(assemblyCode))
.map(t -> t.getAssemblyAccession())
.findFirst();
}
Expand Down

0 comments on commit 721744f

Please sign in to comment.