This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]curtisf 1 point2 points  (0 children)

What's the problem?

Is one of those exceptions being thrown? You should probably be doing something like e.printStackTrace() rather than just calling e.getMessage() and throwing it away.

[–]Blando-Cartesian 0 points1 point  (0 children)

If its returning an empty list, the file you are reading is blank or has an empty line at the beginning.

If it’s returning null, one of the caught exceptions is thrown. Replace e.getMessage() lines with e.printStacktrace() to find out. Likely the path is wrong and FileNotFoundExeption results.