Fixed out of range exception in GetLine.
Merge pull request #2 from nitz/master

Fixed out of range exception in GetLine.