Fix potential null pointer exception
FindBugs found a potentially null pointer exception for the variable
read. 
This patch fixes it.
Change tabs into spaces
Eclipse by default uses tabs, I changed it into spaces and this patch
fixes the previous commit.
Merge pull request #46 from GraziaCiraulo/master

Fix potential null pointer exception