bamtools icon indicating copy to clipboard operation
bamtools copied to clipboard

Checking if the input string while parsing the SAM header is not empty

Open r78v10a07 opened this issue 8 years ago • 1 comments

Hi, I've found some odds BAM files with a TAB at the end of the header lines. I added this check condition to avoid a segmentation fault. Thanks, Roberto

r78v10a07 avatar May 30 '17 15:05 r78v10a07

Good point. But the large diff because of additional indentation can be avoided by using continue like this:

if (tokenIter->empty()) {continue;}

heavywatal avatar May 31 '17 02:05 heavywatal