When reading from stdin redirect don't NullPointer at the end of the dat...

...a