Corrected bug introduced in the last update and causing no families to be returned by getFamilies in case the samples were not specified

This commit is contained in:
Laurent Francioli 2011-11-29 11:18:15 +01:00
parent a09c01fcec
commit ab67011791
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ public class SampleDB {
final Map<String, Set<Sample>> families = new TreeMap<String, Set<Sample>>();
for ( final Sample sample : samples.values() ) {
if(sampleIds != null && sampleIds.contains(sample.getID())){
if(sampleIds == null || sampleIds.contains(sample.getID())){
final String famID = sample.getFamilyID();
if ( famID != null ) {
if ( ! families.containsKey(famID) )