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

Fixed BadSqlGrammarException when accession id set is empty

parent bd4de0ad
......@@ -159,6 +159,11 @@ public class TraitValueRepositoryImpl implements TraitValueRepository {
public Map<Long, Map<Long, List<Object>>> getValues(Metadata metadata, List<Method> methods, List<Accession> accessions) {
final Map<Long, Map<Long, List<Object>>> accessionMetadataValues = new HashMap<Long, Map<Long, List<Object>>>();
if (accessions.size() ==0) {
return accessionMetadataValues;
final Set<Long> accessionIds = new HashSet<Long>(accessions.size());
for (Accession accession : accessions) {
// create lists
Supports Markdown
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