Skip to content

Commit

Permalink
Fix for uninitialized warning
Browse files Browse the repository at this point in the history
If vep is run with e.g. a single input variant that gets
skipped, it finishes without having initialized some count
stats. Stats.pm then attempts to print the uninitialized
value.
  • Loading branch information
William McLaren committed Sep 27, 2017
1 parent 339e27c commit d6fe1cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/VEP/Stats.pm
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ sub dump_html {
print $fh
'<h3 id="gen_stats">General statistics</h3>'.
'<table class="stats_table">'.
join('', map {'<tr>'.join('', map {'<td>'.$_.'</td>'} @$_).'</tr>'} @{$finished_stats->{general_stats}}).
join('', map {'<tr>'.join('', map {'<td>'.($_ || 0).'</td>'} @$_).'</tr>'} @{$finished_stats->{general_stats}}).
'</table>';

foreach my $chart(@{$finished_stats->{charts}}) {
Expand Down

0 comments on commit d6fe1cb

Please sign in to comment.