This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I don't really get this. Why catch the NullPointerException? There is nothing there that could throw one. Not the creation of the file, the FileReader or the BufferedReader. Not the call to br.readLine(), data[count] or data.length. So what will throw it? Nothing, as far as I can see it.
The same goes for the ArrayIndexOutOfBoundsException. You make sure that data starts at 0, and you exit the loop as soon as it becomes too large for the array. So again, nothing could throw it.
Furthermore, you do know that br.readLine() will return null only when there is nothing more to be read? So if this occurs, the remainder of the array will be filled with "empty". If you want this, you could just as well break when it is null and use java.util.Arrays.fill(data, count, data.length, "empty"):