[Biojava-dev] [Bug 3083] PHYLIP parser goes into infinite loop on files with empty lines

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Sun May 23 04:45:49 UTC 2010


http://bugzilla.open-bio.org/show_bug.cgi?id=3083





------- Comment #2 from rb-openbio at rbyers.net  2010-05-23 00:45 EST -------
Created an attachment (id=1503)
 --> (http://bugzilla.open-bio.org/attachment.cgi?id=1503&action=view)
Patch that fixes the PHYLIP parser bug

The problem is the 'if (line.length() == 0) continue' - a new line isn't read,
so it just goes around forever.  In my patch I move the readLine() to the while
to ensure it's executed on every iteration (rather than at the end of the
body).


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the biojava-dev mailing list