Commit f195b91e authored by Matija Obreza's avatar Matija Obreza
Browse files

Taxonomy find method must use '' instead of null

parent 8065598c
......@@ -150,12 +150,12 @@ public class TaxonomyServiceImpl implements TaxonomyService {
@Override
public long getTaxonomy2Id(String genus) {
return taxonomy2Repository.findByGenusAndSpeciesAndSpAuthorAndSubtaxaAndSubtAuthor(genus, "sp.", null, null, null).getId();
return taxonomy2Repository.findByGenusAndSpeciesAndSpAuthorAndSubtaxaAndSubtAuthor(genus, "sp.", "", "", "").getId();
}
@Override
public long getTaxonomy2Id(String genus, String species) {
Taxonomy2 tax = taxonomy2Repository.findByGenusAndSpeciesAndSpAuthorAndSubtaxaAndSubtAuthor(genus, species, null, null, null);
Taxonomy2 tax = taxonomy2Repository.findByGenusAndSpeciesAndSpAuthorAndSubtaxaAndSubtAuthor(genus, species, "", "", "");
return tax.getId();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment