O..M..G.. not a single exception
When I run it without a file I get a FileNotFoundException at line 194 of the file class. Of course it would have helped you if you had done what I suggested and printed out the exception's stack trace rather than your own message.