Skip to content
Browse files

Merge pull request #64 from yschensandiego/patch-2

return undef when reaching file end to avoid infinite loop
  • Loading branch information...
2 parents 74c88d2 + f623285 commit 7a9ff8ecadde93d73d7a9f21dc58a838a9e7791f @fjossandon fjossandon committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 Bio/AlignIO/phylip.pm
View
3 Bio/AlignIO/phylip.pm
@@ -190,7 +190,8 @@ sub next_aln {
return;
}
}
-
+ return unless $seqcount and $residuecount;
+
# First alignment section. We expect to see a name and (part of) a sequence.
my $idlen = $self->idlength;
$count = 0;

0 comments on commit 7a9ff8e

Please sign in to comment.
Something went wrong with that request. Please try again.