Skip to content

Commit

Permalink
Throw runtime exception for condition associated with #38.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Amos committed Mar 15, 2015
1 parent 0fcc74c commit 02a522d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ private String readLine() throws IOException {
char c = 0;
do {
c = (char) is.read();
if (c == 65535) {
throw new RuntimeException("Character is 65535 in readLine");
}
if (c != '\n' && c != '\0') buf.append(c);
} while (c != '\n' && c != '\0');
return buf.toString();
Expand Down

0 comments on commit 02a522d

Please sign in to comment.