Skip to content
New issue

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

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

Already on GitHub? # to your account

paftools stat: Cannot read property '0' of undefined #153

Closed
tseemann opened this issue Apr 24, 2018 · 1 comment
Closed

paftools stat: Cannot read property '0' of undefined #153

tseemann opened this issue Apr 24, 2018 · 1 comment

Comments

@tseemann
Copy link
Contributor

tseemann commented Apr 24, 2018

I assume paftools stat needs a CIGAR string via --cs option etc.

Perhaps exit after first missing CIGAR and give a friendly error to this effect?

WARNING: no CIGAR at line 1
<snip>
/home/linuxbrew/.linuxbrew/bin/paftools.js:578: TypeError: Cannot read property '0' of undefined
                var st = regs[0][0], en = regs[0][1], l = 0;
                  ^
TypeError: Cannot read property '0' of undefined
    at cov_len (/home/linuxbrew/.linuxbrew/bin/paftools.js:578:19)
    at paf_stat (/home/linuxbrew/.linuxbrew/bin/paftools.js:679:11)
    at main (/home/linuxbrew/.linuxbrew/bin/paftools.js:2020:26)
    at /home/linuxbrew/.linuxbrew/bin/paftools.js:2033:1
@lh3
Copy link
Owner

lh3 commented Apr 24, 2018

Fixed via 39f836e. Thanks.

@lh3 lh3 closed this as completed Apr 24, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants