Skip to content

Commit

Permalink
ensure legacyTest runs
Browse files Browse the repository at this point in the history
  • Loading branch information
dror27 committed Oct 13, 2024
1 parent a86772c commit 8a61a69
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/picard/sam/markduplicates/MarkDuplicates.java
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,12 @@ private void ensureNoFlowParametersSpecified() {
}
} else if ( getCommandLineParser() instanceof LegacyCommandLineArgumentParser ) {
final LegacyCommandLineArgumentParser parser = (LegacyCommandLineArgumentParser)getCommandLineParser();
for ( final String name : parser.getArgv() ) {
if (!name.startsWith("FLOW_MODE") && name.startsWith("FLOW_")) {
throw new PicardException(name + " specified, but no FLOW_MODE");
if ( parser.getArgv() != null ) {
for ( final String name : parser.getArgv() ) {
if (!name.startsWith("FLOW_MODE") && name.startsWith("FLOW_")) {
throw new PicardException(name + " specified, but no FLOW_MODE");
}
}

}

}
Expand Down

0 comments on commit 8a61a69

Please sign in to comment.