Merged bug fix from Stable into Unstable

This commit is contained in:
Ryan Poplin 2011-07-12 13:55:51 -04:00
commit 329c3d8050
1 changed files with 4 additions and 1 deletions

View File

@ -867,7 +867,10 @@ public class VariantContext implements Feature { // to enable tribble intergrati
for ( String name : sampleNames ) {
if ( map.containsKey(name) ) throw new IllegalArgumentException("Duplicate names detected in requested samples " + sampleNames);
map.put(name, getGenotype(name));
final Genotype g = getGenotype(name);
if ( g != null ) {
map.put(name, g);
}
}
return map;