samtools / htsjdk

A Java API for high-throughput sequencing data (HTS) formats.
http://samtools.github.io/htsjdk/
283 stars 242 forks source link

[SpotBugs] Field only ever set to null: htsjdk.samtools.CRAMIterator.nextRecord #1280

Closed tomwhite closed 5 years ago

tomwhite commented 5 years ago

This looks like a real bug in CRAM. /cc @jmthibault79, @cmnbroad

See https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html#uwf-field-only-ever-set-to-null-uwf-null-field

Part of #1267

Report:

In class htsjdk.samtools.CRAMIterator
Field htsjdk.samtools.CRAMIterator.nextRecord
In CRAMIterator.java