Skip to content

Commit

Permalink
Add checking of start location to GFFCodec
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Silterra committed Dec 13, 2012
1 parent 60a1e4e commit 0326b66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/org/broad/igv/feature/tribble/GFFCodec.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public BasicFeature decode(String line) {
int col = 3;
try {
start = Integer.parseInt(tokens[col]) - 1;
if(start < 0) throw new ParserException("Start index must be 1 or larger; GFF is 1-based", -1, line);
col++;
end = Integer.parseInt(tokens[col]);
} catch (NumberFormatException ne) {
Expand Down

0 comments on commit 0326b66

Please sign in to comment.