Fixed null pointer exception. The file was not readed.