Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPR when CountReadsSpark is run with no output file #1523

Closed
lbergelson opened this issue Feb 25, 2016 · 0 comments · Fixed by #1535
Closed

Fix NPR when CountReadsSpark is run with no output file #1523

lbergelson opened this issue Feb 25, 2016 · 0 comments · Fixed by #1535
Assignees
Labels
Milestone

Comments

@lbergelson
Copy link
Member

Running without an output file causes an NPR. Needs a null check.

./gatk-launch CountReadsSpark -I src/test/resources/org/broadinstitute/hellbender/tools/count_reads_sorted.bam
java.lang.NullPointerException
    at org.broadinstitute.hellbender.utils.gcs.BucketUtils.isCloudStorageUrl(BucketUtils.java:44)
    at org.broadinstitute.hellbender.utils.gcs.BucketUtils.createFile(BucketUtils.java:105)
    at org.broadinstitute.hellbender.tools.spark.pipelines.CountReadsSpark.runTool(CountReadsSpark.java:37)
    at org.broadinstitute.hellbender.engine.spark.GATKSparkTool.runPipeline(GATKSparkTool.java:310)
    at org.broadinstitute.hellbender.engine.spark.SparkCommandLineProgram.doWork(SparkCommandLineProgram.java:38)
    at org.broadinstitute.hellbender.cmdline.CommandLineProgram.runTool(CommandLineProgram.java:98)
    at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMainPostParseArgs(CommandLineProgram.java:146)
    at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:165)
    at org.broadinstitute.hellbender.Main.instanceMain(Main.java:66)
    at org.broadinstitute.hellbender.Main.main(Main.java:81)
@lbergelson lbergelson added the bug label Feb 25, 2016
@lbergelson lbergelson self-assigned this Feb 25, 2016
@lbergelson lbergelson added this to the alpha-1 milestone Feb 25, 2016
lbergelson added a commit that referenced this issue Feb 29, 2016
adding tests for NPR when there's no output specified
this effects CountBasesSpark, CountReadsSpark, FlagStatSpark, and CountVariantsSpark
fixes #1523

fixing an error in CountVariantsSpark where the vcf input was optional

adding some convinience functions to ArgumentsBuilder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant