Skip to content

Commit 3f213ef

Browse files
committed
Fix regression in testDuplicateSources test.
1 parent fdad663 commit 3f213ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/broadinstitute/hellbender/engine/MultiVariantWalker.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ protected void initializeDrivingVariants() {
118118
}
119119
} else {
120120
final FeatureInput<VariantContext> featureInput = new FeatureInput<>(gatkPath);
121+
if (drivingVariantsFeatureInputs.contains(featureInput)) {
122+
throw new UserException.BadInput("Feature inputs must be unique: " + gatkPath);
123+
}
121124
drivingVariantsFeatureInputs.add(featureInput);
122125
// Add each driving variants FeatureInput to the feature manager so that it can be queried, using a lookahead value
123126
// of 0 to avoid caching because of windowed queries that need to "look behind" as well.

0 commit comments

Comments
 (0)